From bcf2aa636c4833e17c79b3a58e7d5bce37443e20 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Tue, 2 Feb 2021 11:18:22 +0100 Subject: [PATCH] Final cleanup and renaming of MDx display driver --- meson.build | 6 ++--- .../display/{HX83XX_MDx.c => HX8353_MDx.c} | 24 ------------------- 2 files changed, 3 insertions(+), 27 deletions(-) rename platform/drivers/display/{HX83XX_MDx.c => HX8353_MDx.c} (97%) diff --git a/meson.build b/meson.build index bffb42be..21b535d9 100644 --- a/meson.build +++ b/meson.build @@ -183,7 +183,7 @@ else endif ## TYT MD380 -md380_src = src + stm32f405_src + ['platform/drivers/display/HX83XX_MDx.c', +md380_src = src + stm32f405_src + ['platform/drivers/display/HX8353_MDx.c', 'platform/drivers/keyboard/keyboard_MDx.c', 'platform/drivers/NVM/W25Qx.c', 'platform/drivers/NVM/spiFlash_MDx.c', @@ -200,7 +200,7 @@ md380_def = def + stm32f405_def + {'PLATFORM_MD380': ''} ## TYT MD390 -md390_src = src + stm32f405_src + ['platform/drivers/display/HX83XX_MDx.c', +md390_src = src + stm32f405_src + ['platform/drivers/display/HX8353_MDx.c', 'platform/drivers/keyboard/keyboard_MDx.c', 'platform/drivers/NVM/W25Qx.c', 'platform/drivers/NVM/spiFlash_MDx.c', @@ -217,7 +217,7 @@ md390_def = def + stm32f405_def + {'PLATFORM_MD390': ''} ## TYT MD-UV380 -mduv380_src = src + stm32f405_src + ['platform/drivers/display/HX83XX_MDx.c', +mduv380_src = src + stm32f405_src + ['platform/drivers/display/HX8353_MDx.c', 'platform/drivers/keyboard/keyboard_MDx.c', 'platform/drivers/NVM/W25Qx.c', 'platform/drivers/NVM/spiFlash_MDx.c', diff --git a/platform/drivers/display/HX83XX_MDx.c b/platform/drivers/display/HX8353_MDx.c similarity index 97% rename from platform/drivers/display/HX83XX_MDx.c rename to platform/drivers/display/HX8353_MDx.c index 7701f6f0..ad57a0e7 100644 --- a/platform/drivers/display/HX83XX_MDx.c +++ b/platform/drivers/display/HX8353_MDx.c @@ -225,15 +225,6 @@ void display_init() if((lcd_type == 2) || (lcd_type == 3)) { -// writeCmd(0x3a); -// writeData(0x05); -// writeCmd(0x36); -// -// if(lcd_type == 3) -// writeData(8); -// else -// writeData(0x88); - writeCmd(0xfe); writeCmd(0xef); writeCmd(0xb4); @@ -295,10 +286,6 @@ void display_init() writeCmd(0xe9); writeData(0x00); delayMs(20); -// writeCmd(0x11); -// delayMs(120); -// writeCmd(0x29); -// writeCmd(0x2c); } else { @@ -374,17 +361,6 @@ void display_init() writeData(0x01); writeData(0x04); writeData(0x13); -// writeCmd(0x3a); -// writeData(0x05); -// writeCmd(0x36); -// -// if(lcd_type == 1) -// writeData(200); -// else -// writeData(8); - -// writeCmd(0x29); -// writeCmd(0x2c); } /*