aboutsummaryrefslogtreecommitdiffstats
path: root/readme
diff options
context:
space:
mode:
Diffstat (limited to 'readme')
-rw-r--r--readme25
1 files changed, 15 insertions, 10 deletions
diff --git a/readme b/readme
index 7e926841..7840b56a 100644
--- a/readme
+++ b/readme
@@ -6,16 +6,21 @@ git clone https://github.com/tectu/Chibios-LCD-Driver lcd
### Edit boardfiles:
add the following to your board.h file, matching to your pinconfig:
- #define TP_PORT GPIOC
- #define TP_IRQ 4
- #define TP_CS 6
-
- #define LCD_DATA_PORT GPIOE
- #define LCD_CMD_PORT GPIOD
- #define LCD_CS 12
- #define LCD_RS 13
- #define LCD_WR 14
- #define LCD_RD 15
+ #define TP_PORT GPIOC
+ #define TP_IRQ 4
+ #define TP_CS 6
+
+ #define LCD_DATA_PORT_1 GPIOB
+ #define LCD_DATA_PORT_2 GPIOC
+ #define LCD_DATA_PORT_1_BASE 8
+ #define LCD_DATA_PORT_2_BASE 0
+ #define LCD_CMD_PORT GPIOD
+ #define LCD_CS 12
+ #define LCD_RS 13
+ #define LCD_WR 14
+ #define LCD_RD 15
+
+in this example, we use GPIOC[0:7] for DB[0:7] and GPIOB[8:15] for DB[8:15]
### Edit Makefile:
include lcd.mk: