Fixed bug in UC1701 preventing some settings to be correctly applied

This commit is contained in:
Silvano Seva 2021-01-30 07:53:37 +01:00
parent 50841f40ff
commit c87f178823
1 changed files with 11 additions and 13 deletions

View File

@ -88,7 +88,7 @@ void display_init()
gpio_setPin(LCD_RST); gpio_setPin(LCD_RST);
delayMs(5); delayMs(5);
gpio_clearPin(LCD_CS); gpio_clearPin(LCD_CS); /* Bring down CS and keep it low from now on */
gpio_clearPin(LCD_RS); /* RS low -> command mode */ gpio_clearPin(LCD_RS); /* RS low -> command mode */
sendByteToController(0x2F); /* Voltage Follower On */ sendByteToController(0x2F); /* Voltage Follower On */
@ -152,9 +152,7 @@ void display_renderRows(uint8_t startRow, uint8_t endRow)
void display_render() void display_render()
{ {
gpio_clearPin(LCD_CS);
display_renderRows(0, SCREEN_HEIGHT / 8); display_renderRows(0, SCREEN_HEIGHT / 8);
gpio_setPin(LCD_CS);
} }
bool display_renderingInProgress() bool display_renderingInProgress()