aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gdisp
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2015-05-03 12:31:49 +1000
committerinmarket <andrewh@inmarket.com.au>2015-05-03 12:31:49 +1000
commit734416a840c50b4857249f50c0c716f6c26faaf8 (patch)
tree236ce724f4a7ec506a22a5fd60f07750262b1065 /drivers/gdisp
parent4c6a074964aee600a968483e6dca95fc33fb9615 (diff)
downloaduGFX-734416a840c50b4857249f50c0c716f6c26faaf8.tar.gz
uGFX-734416a840c50b4857249f50c0c716f6c26faaf8.tar.bz2
uGFX-734416a840c50b4857249f50c0c716f6c26faaf8.zip
Started prototyping some changes to the STM32F429iDiscovery driver.
None are active yet.
Diffstat (limited to 'drivers/gdisp')
-rw-r--r--drivers/gdisp/STM32F429iDiscovery/gdisp_lld_STM32F429iDiscovery.c27
1 files changed, 21 insertions, 6 deletions
diff --git a/drivers/gdisp/STM32F429iDiscovery/gdisp_lld_STM32F429iDiscovery.c b/drivers/gdisp/STM32F429iDiscovery/gdisp_lld_STM32F429iDiscovery.c
index 50dadef7..a42fe990 100644
--- a/drivers/gdisp/STM32F429iDiscovery/gdisp_lld_STM32F429iDiscovery.c
+++ b/drivers/gdisp/STM32F429iDiscovery/gdisp_lld_STM32F429iDiscovery.c
@@ -112,8 +112,13 @@ static void InitController(GDisplay *g) {
REG_COMMAND | ILI9341_SET_FUNCTION_CTL, 0x0A, 0xA2,
REG_COMMAND | ILI9341_SET_POWER_CTL_1, 0x10,
REG_COMMAND | ILI9341_SET_POWER_CTL_2, 0x10,
- REG_COMMAND | ILI9341_SET_VCOM_CTL_1, 0x45, 0x15,
- REG_COMMAND | ILI9341_SET_VCOM_CTL_2, 0x90,
+ #if 1
+ REG_COMMAND | ILI9341_SET_VCOM_CTL_1, 0x45, 0x15,
+ REG_COMMAND | ILI9341_SET_VCOM_CTL_2, 0x90,
+ #else
+ REG_COMMAND | ILI9341_SET_VCOM_CTL_1, 0x35, 0x3E,
+ REG_COMMAND | ILI9341_SET_VCOM_CTL_2, 0xBE,
+ #endif
REG_COMMAND | ILI9341_SET_MEM_ACS_CTL, 0xC8,
REG_COMMAND | ILI9341_SET_RGB_IF_SIG_CTL, 0xC2,
REG_COMMAND | ILI9341_SET_FUNCTION_CTL, 0x0A, 0xA7, 0x27, 0x04,
@@ -122,11 +127,21 @@ static void InitController(GDisplay *g) {
REG_COMMAND | ILI9341_SET_IF_CTL, 0x01, 0x00, 0x06,
REG_COMMAND | ILI9341_SET_GAMMA, 0x01,
REG_COMMAND | ILI9341_SET_PGAMMA,
- 0x0F, 0x29, 0x24, 0x0C, 0x0E, 0x09, 0x4E, 0x78,
- 0x3C, 0x09, 0x13, 0x05, 0x17, 0x11, 0x00,
+ #if 1
+ 0x0F, 0x29, 0x24, 0x0C, 0x0E, 0x09, 0x4E, 0x78,
+ 0x3C, 0x09, 0x13, 0x05, 0x17, 0x11, 0x00,
+ #else
+ 0x1F, 0x1a, 0x18, 0x0a, 0x0f, 0x06, 0x45, 0x87,
+ 0x32, 0x0a, 0x07, 0x02, 0x07, 0x05, 0x00,
+ #endif
REG_COMMAND | ILI9341_SET_NGAMMA,
- 0x00, 0x16, 0x1B, 0x04, 0x11, 0x07, 0x31, 0x33,
- 0x42, 0x05, 0x0C, 0x0A, 0x28, 0x2F, 0x0F,
+ #if 1
+ 0x00, 0x16, 0x1B, 0x04, 0x11, 0x07, 0x31, 0x33,
+ 0x42, 0x05, 0x0C, 0x0A, 0x28, 0x2F, 0x0F,
+ #else
+ 0x00, 0x25, 0x27, 0x05, 0x10, 0x09, 0x3a, 0x78,
+ 0x4d, 0x05, 0x18, 0x0d, 0x38, 0x3a, 0x1f,
+ #endif
REG_COMMAND | ILI9341_CMD_SLEEP_OFF,
REG_DELAY | 10,
REG_COMMAND | ILI9341_CMD_DISPLAY_ON,