diff --git a/configs/lm3s6965-ek/nx/defconfig b/configs/lm3s6965-ek/nx/defconfig index 681bc85d626..601c8c18674 100755 --- a/configs/lm3s6965-ek/nx/defconfig +++ b/configs/lm3s6965-ek/nx/defconfig @@ -580,7 +580,7 @@ CONFIG_NX_MXCLIENTMSGS=16 # RiT P14201 OLED Driver Configuration # # CONFIG_LCD_P14201 - Enable P14201 support -# CONFIG_P14201_SPIMODE - Controls the SPI mode +# CONFIG_P14201_SPIMODE - Controls the SPI mode (should be mode 2) # CONFIG_P14201_FREQUENCY - Define to use a different bus frequency # CONFIG_P14201_NINTERFACES - Specifies the number of physical P14201 devices that # will be supported. @@ -593,7 +593,7 @@ CONFIG_NX_MXCLIENTMSGS=16 # # The latter limitation effectively reduces the 128x96 disply to 64x96. CONFIG_LCD_P14201=y -CONFIG_P14201_SPIMODE=0 +CONFIG_P14201_SPIMODE=2 CONFIG_P14201_FREQUENCY=20000000 CONFIG_P14201_NINTERFACES=1 CONFIG_P14201_FRAMEBUFFER=y diff --git a/configs/lm3s6965-ek/src/up_oled.c b/configs/lm3s6965-ek/src/up_oled.c index 10d467a58cb..5bc3e9146ab 100755 --- a/configs/lm3s6965-ek/src/up_oled.c +++ b/configs/lm3s6965-ek/src/up_oled.c @@ -45,6 +45,7 @@ #include #include +#include #include #include "lm3s_internal.h" @@ -94,6 +95,10 @@ FAR struct lcd_dev_s *up_nxdrvinit(unsigned int devno) else { gllvdbg("Bound SPI port 0 to OLED %d\n", devno); + + /* And turn the OLED on (CONFIG_LCD_MAXPOWER should be 1) */ + + (void)dev->setpower(dev, CONFIG_LCD_MAXPOWER); return dev; } }