Browse code

Add source code of the firmware for the IO Board

Pawel Jablonski authored on 05/06/2023 17:01:27
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,37 @@
1
+/*
2
+ * Author: Pawel Jablonski
3
+ * E-mail: pj@xirx.net
4
+ * WWW: xirx.net
5
+ * GIT: git.xirx.net
6
+ *
7
+ * License: You can use this code however you like
8
+ * but leave information about the original author.
9
+ * Code is free for non-commercial and commercial use.
10
+ */
11
+
12
+#ifndef _LCD_H
13
+#define _LCD_H
14
+
15
+#include "type.h"
16
+
17
+#define LCD_CHAR_WIDTH 8 //!< Width of the char in pixels
18
+#define LCD_CHAR_HEIGHT 8 //!< Height of the char in pixels
19
+
20
+#define LCD_WIDTH 40 //!< Chars per row
21
+#define LCD_HEIGHT 30 //!< Chars per column
22
+
23
+#define LCD_MATRIX_WIDTH (LCD_CHAR_WIDTH * LCD_WIDTH) //!< Pixel matrix width
24
+#define LCD_MATRIX_HEIGHT (LCD_CHAR_HEIGHT * LCD_HEIGHT) //!< Pixel matrix height
25
+
26
+void lcdInit(void);
27
+
28
+void lcdRefresh(void);
29
+
30
+void lcdClear(void);
31
+void lcdSetChar(unsigned char c, unsigned int x, unsigned int y, unsigned char charColor, unsigned char backgroundColor);
32
+
33
+void lcdScroll(void);
34
+
35
+void lcdDrawLoop(void);
36
+
37
+#endif