From 38a874c4987e4863a03def7ea3eb4807c0b64abc Mon Sep 17 00:00:00 2001 From: Sylaina Date: Mon, 3 Dec 2018 11:46:41 +0100 Subject: [PATCH] Update lcd.c --- lcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcd.c b/lcd.c index f805f90..1fba6c7 100644 --- a/lcd.c +++ b/lcd.c @@ -272,7 +272,7 @@ void lcd_putc(char c){ i2c_stop(); #if defined SSD1306 - uint8_t commandSequence[] = {0xb0+y, 0x21, x, 0x7f}; + uint8_t commandSequence[] = {0xb0+cursorPosition.y, 0x21, cursorPosition.x, 0x7f}; #elif defined SH1106 uint8_t commandSequence[] = {0xb0+cursorPosition.y+1, 0x21, 0x00+((2+cursorPosition.x) & (0x0f)), 0x10+( ((2+cursorPosition.x) & (0xf0)) >> 4 ), 0x7f}; #endif