Skip to content

Commit ef48fd4

Browse files
committed
Thu 18 Jul 2019 13:32:20 EDT - added firmware releases
1 parent 0b97d45 commit ef48fd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3247
-644
lines changed
44.6 KB
Loading

Assets/Config/config-launch.jpg

45 KB
Loading
34.2 KB
Loading
34.1 KB
Loading
60.6 KB
Loading

Assets/Config/config-spi-ram.jpg

51.5 KB
Loading
29.7 KB
Loading
61.1 KB
Loading
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
menu "LCD Screen Driver"
2+
3+
choice LCD_DRIVER_CHIP
4+
prompt "LCD Driver Chip"
5+
default LCD_DRIVER_CHIP_ODROID_GO
6+
help
7+
Select Your LCD Driver
8+
9+
config LCD_DRIVER_CHIP_ODROID_GO
10+
bool "Odroid Go Default (ILI9341) [2.4\"]"
11+
12+
config LCD_DRIVER_CHIP_RETRO_ESP32
13+
bool "Retro ESP32 (ILI9342) [2.6\"]"
14+
15+
endchoice
16+
17+
endmenu

Components/emulator-launcher-odroid-go/components/hardware/src/display.c

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ DRAM_ATTR static const ili_init_cmd_t ili_sleep_cmds[] = {
5656
{0, {0}, 0xff}
5757
};
5858

59-
// 2.4" LCD
59+
/*
60+
CONFIG_LCD_DRIVER_CHIP_ODROID_GO
61+
*/
62+
#ifdef CONFIG_LCD_DRIVER_CHIP_ODROID_GO
6063
DRAM_ATTR static const ili_init_cmd_t ili_init_cmds[] = {
61-
// VCI=2.8V
64+
// VCI=2.8V
6265
//************* Start Initial Sequence **********//
6366
{TFT_CMD_SWRESET, {0}, 0x80},
6467
{0xCF, {0x00, 0xc3, 0x30}, 3},
@@ -70,6 +73,8 @@ DRAM_ATTR static const ili_init_cmd_t ili_init_cmds[] = {
7073
{0xC0, {0x1B}, 1}, //Power control //VRH[5:0]
7174
{0xC1, {0x12}, 1}, //Power control //SAP[2:0];BT[3:0]
7275
{0xC5, {0x32, 0x3C}, 2}, //VCM control
76+
{0xC7, {0x91}, 1}, //VCM control2
77+
//{0x36, {(MADCTL_MV | MADCTL_MX | TFT_RGB_BGR)}, 1}, // Memory Access Control
7378
{0x36, {(MADCTL_MV | MADCTL_MY | TFT_RGB_BGR)}, 1}, // Memory Access Control
7479
{0x3A, {0x55}, 1},
7580
{0xB1, {0x00, 0x1B}, 2}, // Frame Rate Control (1B=70, 1F=61, 10=119)
@@ -82,6 +87,41 @@ DRAM_ATTR static const ili_init_cmd_t ili_init_cmds[] = {
8287
{0xE0, {0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08, 0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03, 0x0E, 0x09, 0x00}, 15},
8388
{0XE1, {0x00, 0x0E, 0x14, 0x03, 0x11, 0x07, 0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C, 0x31, 0x36, 0x0F}, 15},
8489

90+
{0x11, {0}, 0x80}, //Exit Sleep
91+
{0x29, {0}, 0x80}, //Display on
92+
93+
{0, {0}, 0xff}
94+
};
95+
#endif
96+
/*
97+
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32
98+
*/
99+
#ifdef CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32
100+
DRAM_ATTR static const ili_init_cmd_t ili_init_cmds[] = {
101+
// VCI=2.8V
102+
//************* Start Initial Sequence **********//
103+
{TFT_CMD_SWRESET, {0}, 0x80},
104+
{0xCF, {0x00, 0xc3, 0x30}, 3},
105+
{0xED, {0x64, 0x03, 0x12, 0x81}, 4},
106+
{0xE8, {0x85, 0x00, 0x78}, 3},
107+
{0xCB, {0x39, 0x2c, 0x00, 0x34, 0x02}, 5},
108+
{0xF7, {0x20}, 1},
109+
{0xEA, {0x00, 0x00}, 2},
110+
{0xC0, {0x1B}, 1}, //Power control //VRH[5:0]
111+
{0xC1, {0x12}, 1}, //Power control //SAP[2:0];BT[3:0]
112+
{0xC5, {0x32, 0x3C}, 2}, //VCM control
113+
{0x36, {(MADCTL_MV | MADCTL_MY | TFT_RGB_BGR)}, 1}, // Memory Access Control
114+
{0x3A, {0x55}, 1},
115+
{0xB1, {0x00, 0x1B}, 2}, // Frame Rate Control (1B=70, 1F=61, 10=119)
116+
{0xB6, {0x0A, 0xA2}, 2}, // Display Function Control
117+
{0xF6, {0x01, 0x30}, 2},
118+
{0xF2, {0x00}, 1}, // 3Gamma Function Disable
119+
{0x26, {0x01}, 1}, //Gamma curve selected
120+
121+
//Set Gamma
122+
{0xE0, {0x0F, 0x31, 0x2B, 0x0C, 0x0E, 0x08, 0x4E, 0xF1, 0x37, 0x07, 0x10, 0x03, 0x0E, 0x09, 0x00}, 15},
123+
{0XE1, {0x00, 0x0E, 0x14, 0x03, 0x11, 0x07, 0x31, 0xC1, 0x48, 0x08, 0x0F, 0x0C, 0x31, 0x36, 0x0F}, 15},
124+
85125
// ILI9342 Specific
86126
{0x36, {0x40|0x80|0x08}, 1}, // <-- ROTATE
87127
{0x21, {0}, 0x80}, // <-- INVERT COLORS
@@ -90,6 +130,7 @@ DRAM_ATTR static const ili_init_cmd_t ili_init_cmds[] = {
90130
{0x29, {0}, 0x80}, //Display on
91131
{0, {0}, 0xff}
92132
};
133+
#endif
93134

94135
// Send a command to the ILI9341. Uses spi_device_transmit, which waits until
95136
// the transfer is complete.

0 commit comments

Comments
 (0)