diff options
Diffstat (limited to 'nuttx/configs')
-rwxr-xr-x | nuttx/configs/lm3s6965-ek/nx/defconfig | 4 | ||||
-rwxr-xr-x | nuttx/configs/lm3s6965-ek/src/up_oled.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/nuttx/configs/lm3s6965-ek/nx/defconfig b/nuttx/configs/lm3s6965-ek/nx/defconfig index 681bc85d6..601c8c186 100755 --- a/nuttx/configs/lm3s6965-ek/nx/defconfig +++ b/nuttx/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/nuttx/configs/lm3s6965-ek/src/up_oled.c b/nuttx/configs/lm3s6965-ek/src/up_oled.c index 10d467a58..5bc3e9146 100755 --- a/nuttx/configs/lm3s6965-ek/src/up_oled.c +++ b/nuttx/configs/lm3s6965-ek/src/up_oled.c @@ -45,6 +45,7 @@ #include <errno.h> #include <nuttx/spi.h> +#include <nuttx/lcd.h> #include <nuttx/p14201.h> #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; } } |