diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-05-27 07:26:59 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-05-27 07:26:59 -0600 |
commit | bec3b36f727b4bccdf9900097ae8d76fb7faa1ab (patch) | |
tree | d437009bc570af3f132ee68cd68f002b2f76f4a2 /nuttx/drivers | |
parent | 168976579a7a81d31112283b23ff9fe7b7d25166 (diff) | |
download | px4-nuttx-bec3b36f727b4bccdf9900097ae8d76fb7faa1ab.tar.gz px4-nuttx-bec3b36f727b4bccdf9900097ae8d76fb7faa1ab.tar.bz2 px4-nuttx-bec3b36f727b4bccdf9900097ae8d76fb7faa1ab.zip |
Rename SLCD geometry tructure to attributes; Move MAX contrast to attributes. Add attribute and ioctl commands to get and set SLCD brightness
Diffstat (limited to 'nuttx/drivers')
-rw-r--r-- | nuttx/drivers/lcd/Kconfig | 14 | ||||
-rw-r--r-- | nuttx/drivers/lcd/README.txt | 5 |
2 files changed, 13 insertions, 6 deletions
diff --git a/nuttx/drivers/lcd/Kconfig b/nuttx/drivers/lcd/Kconfig index 29a79a068..7673ed5d1 100644 --- a/nuttx/drivers/lcd/Kconfig +++ b/nuttx/drivers/lcd/Kconfig @@ -23,8 +23,9 @@ config LCD_MAXCONTRAST int "LCD maximum contrast" default 63 if NOKIA6100_S1D15G10 default 127 if NOKIA6100_PCF8833 - default 255 if LCD_P14201 + default 255 if LCD_P14201 || LCD_LCD1602 default 63 + range 1 255 ---help--- must be 63 with the Epson controller and 127 with the Phillips controller. @@ -32,11 +33,14 @@ config LCD_MAXCONTRAST config LCD_MAXPOWER int "LCD maximum power" default 1 + range 1 255 ---help--- - Maximum value of backlight setting. The backlight - control is managed outside of the 6100 driver so this value has no - meaning to the driver. Board-specific logic may place restrictions on - this value. + Maximum value of LCD power setting. This normally equates to brightness: + The brighter the screen, the hight the power usage. + + On LCDs that have a backlight, this value corresponds directly to that + backlight setting. Board-specific logic may place restrictions on this + value. comment "Graphic LCD Devices" diff --git a/nuttx/drivers/lcd/README.txt b/nuttx/drivers/lcd/README.txt index ef19da15d..d91abcd37 100644 --- a/nuttx/drivers/lcd/README.txt +++ b/nuttx/drivers/lcd/README.txt @@ -199,7 +199,10 @@ that makes then less re-usable: configs/skp16c26/src/up_lcd.c. Untested alphanumeric LCD driver. configs/pcblogic-pic32mx/src/up_lcd1602.c. LCD1602 is based on the - Hitachi HD44780U LCD controller. See also include/nuttx/lcd/hd4478ou.h. + Hitachi HD44780U LCD controller (untested). See also + include/nuttx/lcd/hd4478ou.h. + configs/sure-pic32mx/src/up_lcd1602.c. Another LCD1602-like segment + LCD. configs/stm32ldiscovery/src/stm32_lcd.c. 1x6 segment LCD with bars using the segment LCD controller built-into the STM32L15X. |