From 46444987c315bc09eca15d0fb9d54f3d3a5f2abf Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Wed, 5 Jun 2024 08:21:58 +0200 Subject: [PATCH] GOTO defs added --- lcd.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lcd.h b/lcd.h index 274b0dc..726aa1b 100644 --- a/lcd.h +++ b/lcd.h @@ -81,9 +81,12 @@ // Set DD RAM Address --------- 0b1xxxxxxx (Display Data RAM) #define LCD_SET_DDADR 0x80 - - // LCD_E=1; \ - // LCD_E=0; \ + + +#define LCD_GOTO_HOME LCD_SET_DDADR +#define LCD_GOTO_LINE1 LCD_GOTO_HOME +#define LCD_GOTO_LINE2 LCD_SET_DDADR+0x40 + #define lcd_wait_ready()\ LCD_E=1; \