aboutsummaryrefslogtreecommitdiff
path: root/3rd-party/LCDHD44780.h
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2021-01-19 00:34:24 -0500
committertslil <tslil@posteo.de>2026-08-28 19:37:41 +0100
commit29cebd42bf2f748c23018cc64a102ca3e589526c (patch)
tree23bbef821ae5e658de76eb4a6ff8da49d5bd62f7 /3rd-party/LCDHD44780.h
parent82d679ab5fa43c33ae52fe7b66d7c358f6046a45 (diff)
Currently segfaults. Maybe because serial is in use?
Diffstat (limited to '3rd-party/LCDHD44780.h')
-rw-r--r--3rd-party/LCDHD44780.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/3rd-party/LCDHD44780.h b/3rd-party/LCDHD44780.h
index d25f046..8e2e953 100644
--- a/3rd-party/LCDHD44780.h
+++ b/3rd-party/LCDHD44780.h
@@ -51,13 +51,12 @@
#include <bcm2835.h>
// Define GPIO pin to LCD pin mapping
-#define LCD_RS RPI_V2_GPIO_P1_26
-#define LCD_RW RPI_V2_GPIO_P1_07
-#define LCD_E RPI_V2_GPIO_P1_24
-#define LCD_D4 RPI_V2_GPIO_P1_22
-#define LCD_D5 RPI_V2_GPIO_P1_18
-#define LCD_D6 RPI_V2_GPIO_P1_16
-#define LCD_D7 RPI_V2_GPIO_P1_12
+#define LCD_RS 21
+#define LCD_E 20
+#define LCD_D4 26
+#define LCD_D5 19
+#define LCD_D6 13
+#define LCD_D7 6
// Define some device constants
// Maximum characters per line
@@ -173,8 +172,6 @@ void clear_lcd(void);
void set_cursor(uint8_t addr);
-uint8_t busy_wait(void);
-
void display_off(void);
void show_cursor(bool on);