From bec3b36f727b4bccdf9900097ae8d76fb7faa1ab Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 27 May 2013 07:26:59 -0600 Subject: Rename SLCD geometry tructure to attributes; Move MAX contrast to attributes. Add attribute and ioctl commands to get and set SLCD brightness --- nuttx/drivers/lcd/Kconfig | 14 +++++++++----- nuttx/drivers/lcd/README.txt | 5 ++++- 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'nuttx/drivers/lcd') 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. -- cgit v1.2.3