From c6e0fc69923a9023e1e3aa7ebba5fb4e1575549e Mon Sep 17 00:00:00 2001 From: Jack Massey Date: Thu, 28 Feb 2019 21:31:38 +1000 Subject: [PATCH] Fixed init for the JAYCAR screen The ini for the JAYCAR screen didn't correctly set the column and row start. This has been corrected so it matches the default landscape mode. --- st7735.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/st7735.c b/st7735.c index 9b51bbd..b291600 100644 --- a/st7735.c +++ b/st7735.c @@ -135,7 +135,16 @@ void st7735_init() { st7735_height = st7735_default_height_144; st7735_column_start = 2; st7735_row_start = 3; + st7735_run_command_list(st7735_red_init1); + st7735_run_command_list(st7735_red_init_green1442); + st7735_run_command_list(st7735_red_init3); + st7735_width = st7735_default_width; + st7735_height = st7735_default_height_144; + break; case ST7735_RED144_JAYCAR: + st7735_height = st7735_default_height_144; + st7735_column_start = 32; + st7735_row_start = 0; st7735_run_command_list(st7735_red_init1); st7735_run_command_list(st7735_red_init_green1442); st7735_run_command_list(st7735_red_init3);