From 29cebd42bf2f748c23018cc64a102ca3e589526c Mon Sep 17 00:00:00 2001 From: tslil clingman Date: Tue, 19 Jan 2021 00:34:24 -0500 Subject: Currently segfaults. Maybe because serial is in use? --- 3rd-party/LCDHD44780.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to '3rd-party/LCDHD44780.h') 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 // 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); -- cgit v1.3.1