kopia lustrzana https://github.com/OpenRTX/OpenRTX
Final cleanup and renaming of MDx display driver
rodzic
6e28fa5b21
commit
bcf2aa636c
|
@ -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',
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
Ładowanie…
Reference in New Issue