diff --git a/src/main/drivers/display_ug2864hsweg01.c b/src/main/drivers/display_ug2864hsweg01.c index 118acff5730..2f7d7d3c43d 100644 --- a/src/main/drivers/display_ug2864hsweg01.c +++ b/src/main/drivers/display_ug2864hsweg01.c @@ -204,7 +204,7 @@ void i2c_OLED_clear_display(void) i2c_OLED_send_cmd(0x40); // Display start line register to 0 i2c_OLED_send_cmd(0); // Set low col address to 0 i2c_OLED_send_cmd(0x10); // Set high col address to 0 - for (uint16_t i = 0; i < 1024; i++) { // fill the display's RAM with graphic... 128*64 pixel picture + for (uint16_t i = 0; i < 1152; i++) { // fill the display's RAM with graphic... 128*64 pixel picture i2c_OLED_send_byte(0x00); // clear } i2c_OLED_send_cmd(0x81); // Setup CONTRAST CONTROL, following byte is the contrast Value... always a 2 byte instruction @@ -218,7 +218,7 @@ void i2c_OLED_clear_display_quick(void) i2c_OLED_send_cmd(0x40); // Display start line register to 0 i2c_OLED_send_cmd(0); // Set low col address to 0 i2c_OLED_send_cmd(0x10); // Set high col address to 0 - for (uint16_t i = 0; i < 1024; i++) { // fill the display's RAM with graphic... 128*64 pixel picture + for (uint16_t i = 0; i < 1152; i++) { // fill the display's RAM with graphic... 128*64 pixel picture i2c_OLED_send_byte(0x00); // clear } }