include: nuttx: lcd: nxstyle fixes

Nxstyle fixes to pass CI

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
Alin Jerpelea
2021-01-26 05:11:58 -08:00
committed by Xiang Xiao
parent 647adf9fcc
commit 785cb0dffe
20 changed files with 599 additions and 453 deletions
+373 -315
View File
File diff suppressed because it is too large Load Diff
+20 -17
View File
@@ -1,4 +1,4 @@
/********************************************************************************************
/****************************************************************************
* include/nuttx/lcd/hd4478ou.h
*
* Definitions for the Hitachi HD44780U LCD controller (as used in the
@@ -34,14 +34,15 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
********************************************************************************************/
****************************************************************************/
#ifndef __INCLUDE_NUTTX_HD4478OU_H
#define __INCLUDE_NUTTX_HD4478OU_H
/********************************************************************************************
/****************************************************************************
* Included Files
********************************************************************************************/
****************************************************************************/
/* Command set:
*
* RS=0 R/W=0 : Command
@@ -94,38 +95,40 @@
#define HD4478OU_DDRAM_ROW0 0x00
#define HD4478OU_DDRAM_ROW1 0x40
/********************************************************************************************
/****************************************************************************
* Pre-processor Definitions
********************************************************************************************/
****************************************************************************/
/********************************************************************************************
/****************************************************************************
* Public Types
********************************************************************************************/
****************************************************************************/
/********************************************************************************************
/****************************************************************************
* Public Data
********************************************************************************************/
****************************************************************************/
#ifdef __cplusplus
extern "C"
{
#endif
/********************************************************************************************
/****************************************************************************
* Public Function Prototypes
********************************************************************************************/
****************************************************************************/
/********************************************************************************************
/****************************************************************************
* Name: up_lcd1602_initialize
*
* Description:
* The LCD1602 is an HD4478OU-based LCD from Wave share. This function initializes the
* LCD1602 hardware and registers the character driver as /dev/lcd1602.
* The LCD1602 is an HD4478OU-based LCD from Wave share.
* This function initializes the LCD1602 hardware and registers the
* character driver as /dev/lcd1602.
*
* NOTE: This common interface definition is provided, however, the underlying
* NOTE:
* This common interface definition is provided, however, the underlying
* implemenataton is always board-specific for this LCD.
*
********************************************************************************************/
****************************************************************************/
int up_lcd1602_initialize(void);
File diff suppressed because it is too large Load Diff
+3 -1
View File
@@ -46,6 +46,7 @@
/**************************************************************************************
* Pre-processor Definitions
**************************************************************************************/
/* ILI9341 ID code */
#define ILI9341_DEVICE_CODE 0x9341
@@ -142,7 +143,9 @@
#define ILI9341_PUMP_RATIO_CONTROL 0xf7 /* Pump ration control */
/* ILI9341 LCD Register Bit Definitions ***********************************************/
/* Pixel format set */
#define ILI9341_PIXEL_FORMAT_SET_DPI_SHIFT (4)
#define ILI9341_PIXEL_FORMAT_SET_DPI_MASK (7 << ILI9341_PIXEL_FORMAT_SET_DPI_SHIFT)
#define ILI9341_PIXEL_FORMAT_SET_DPI(n) ((n) << ILI9341_PIXEL_FORMAT_SET_DPI_SHIFT)
@@ -239,7 +242,6 @@ struct ili9341_lcd_s
/* mcu interface specific data following */
};
/**************************************************************************************
* Public Data
**************************************************************************************/
+10 -9
View File
@@ -15,15 +15,16 @@
* from this software without specific prior written permission.
*
* DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
* DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
* ARE DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
****************************************************************************/
+2 -2
View File
@@ -101,8 +101,8 @@ struct lpm013m091a_lcd_s
*
* Input Parameters:
*
* lcd - A reference to the platform specific driver instance to control the
* lpm013m091a display driver.
* lcd - A reference to the platform specific driver instance to control
* the lpm013m091a display driver.
* devno - This is for compat. must be zero.
*
* Returned Value:
-1
View File
@@ -87,7 +87,6 @@
#define MAX7219_POWER_OFF 0
#define MAX7219_POWER_ON 1
/****************************************************************************
* Public Types
****************************************************************************/
+2
View File
@@ -50,7 +50,9 @@
/**************************************************************************************
* Pre-processor Definitions
**************************************************************************************/
/* Configuration **********************************************************************/
/* CONFIG_LCD_MIO283QT2 - Enables support for the MIO283QT2-based LCD.
* CONFIG_LCD_NOGETRUN
* NX components need to know if it can read from the LCD or not. If reading from the
+2
View File
@@ -51,7 +51,9 @@
/**************************************************************************************
* Pre-processor Definitions
**************************************************************************************/
/* Configuration **********************************************************************/
/* CONFIG_LCD_MIO283QT9A - Enables support for the MIO283QT9A-based LCD.
* CONFIG_LCD_NOGETRUN
* NX components need to know if it can read from the LCD or not. If reading from the
+2 -2
View File
@@ -51,8 +51,8 @@
*
* CONFIG_P14201_SPIMODE - Controls the SPI mode
* CONFIG_P14201_FREQUENCY - Define to use a different bus frequency
* CONFIG_P14201_NINTERFACES - Specifies the number of physical P14201 devices
* that will be supported.
* CONFIG_P14201_NINTERFACES - Specifies the number of physical P14201
* devices that will be supported.
* CONFIG_P14201_FRAMEBUFFER - If defined, accesses will be performed using
* an in-memory copy of the OLEDs GDDRAM. This cost of this buffer is
* 128 * 96 / 2 = 6Kb. If this is defined, then the driver will be fully
+6 -3
View File
@@ -63,7 +63,8 @@
*
* Required LCD driver settings:
* CONFIG_LCD_PCD8544 - Enable PCD8544 support
* CONFIG_LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted.
* CONFIG_LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be
* accepted.
* CONFIG_LCD_MAXPOWER should be 2: 0=off, 1=dim, 2=normal
*
* Required SPI driver settings:
@@ -108,7 +109,8 @@ extern "C"
* Input Parameters:
*
* spi - A reference to the SPI driver instance.
* devno - A value in the range of 0 thropcd8544h CONFIG_PCD8544_NINTERFACES-1.
* devno - A value in the range of 0 thropcd8544h
* CONFIG_PCD8544_NINTERFACES-1.
* This allows support for multiple LCD devices.
*
* Returned Value:
@@ -120,7 +122,8 @@ extern "C"
struct lcd_dev_s; /* see nuttx/lcd.h */
struct spi_dev_s; /* see nuttx/spi/spi.h */
FAR struct lcd_dev_s *pcd8544_initialize(FAR struct spi_dev_s *spi, unsigned int devno);
FAR struct lcd_dev_s *pcd8544_initialize(FAR struct spi_dev_s *spi,
unsigned int devno);
#ifdef __cplusplus
}
+19 -14
View File
@@ -51,15 +51,16 @@
* Pre-processor Definitions
****************************************************************************/
/* Configurations of some well-known boards. You may still have to modify the
* address if was changed from the default. You will also need to specify the
* geometry of your attached LCD display. You can support:
/* Configurations of some well-known boards.
* You may still have to modify the address if was changed from the default.
* You will also need to specify the geometry of your attached LCD display.
* You can support:
* 1x8, 1x12, 1x16, 2x8, 2x12, 2x16, 2x20, 2x24, 2x40, 4x16, 4x20
* Pretty much anything on the market except 4x40, which really consists of two
* separate 2x40 controllers, and the I2C backpack doesn't support those due
* to the second 'E' line being needed.
* Additionally, you still need to set the (row,col) geometry explicitly, since
* there is not a means of determining this dynamically.
* Pretty much anything on the market except 4x40, which really consists of
* two separate 2x40 controllers, and the I2C backpack doesn't support those
* due to the second 'E' line being needed.
* Additionally, you still need to set the (row,col) geometry explicitly,
* since there is not a means of determining this dynamically.
* Consider these 'informative'.
* XXX Note, actual testing has been done on LCD_I2C_BACKPACK_CFG_MJKDZ
* and LCD_I2C_BACKPACK_CFG_SAINSMART only, the others come from online
@@ -93,7 +94,7 @@
#define SLCDIOC_CREATECHAR _SLCDIOC(0x80)
/****************************************************************************
/****************************************************************************
* Public Types
****************************************************************************/
@@ -114,7 +115,9 @@ struct pcf8574_lcd_backpack_config_s
uint8_t d6; /* gpio bit for LCD D6 */
uint8_t d7; /* gpio bit for LCD D7 */
uint8_t bl; /* gpio bit for backlight control */
bool bl_active_high; /* is the backlight control active high? */
uint8_t rows; /* screen geometry, rows, 1, 2 or 4 */
uint8_t cols; /* screen geometry, cols, 8, 12, 16, 20, 24, 40 */
};
@@ -137,7 +140,7 @@ struct slcd_createchar_s
};
/****************************************************************************
* Public Functions
* Public Functions Definitions
****************************************************************************/
/****************************************************************************
@@ -148,7 +151,8 @@ struct slcd_createchar_s
* PCF8574 I2C IO expander. It allows operation of the ever-popular HD44780
* based LCDs via I2C instead of parallel (saving a bunch of gpio lines).
*
* There are a multitude of these available from various sources (e.g. ebay).
* There are a multitude of these available from various sources
* (e.g. ebay).
* They typically vary by gpio-to-lcd pin mapping, and I2C address, but
* otherwise are functionally identical.
*
@@ -166,14 +170,15 @@ struct slcd_createchar_s
* characters; see above for details.
*
* Input Parameters:
* devpath - path to device node; arbitrary, but typically '/dev/lcd0' or such
* devpath - path to device node; arbitrary, but typically '/dev/lcd0' or
* such
* i2c - the low-level i2c bus onto which to bind
* cfg - the board-specific configuration
*
****************************************************************************/
int pcf8574_lcd_backpack_register(FAR const char *devpath,
FAR struct i2c_master_s *i2c,
FAR struct pcf8574_lcd_backpack_config_s *cfg);
FAR struct i2c_master_s *i2c,
FAR struct pcf8574_lcd_backpack_config_s *cfg);
#endif /* __INCLUDE_NUTTX_LCD_PCF8574_LCD_BACKPACK_H */
+2
View File
@@ -50,7 +50,9 @@
/**************************************************************************************
* Pre-processor Definitions
**************************************************************************************/
/* Configuration **********************************************************************/
/* CONFIG_LCD_RA8875 - Enables support for the RA8875-based LCD.
* CONFIG_LCD_NOGETRUN
* NX components need to know if it can read from the LCD or not. If reading from the
+2 -2
View File
@@ -1,4 +1,4 @@
/************************************************************************************
/****************************************************************************
* include/nuttx/lcd/slcd_codec.h
* Serialize and marshaling data and events for character-based, segment LCDs
*
@@ -32,7 +32,7 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************************/
****************************************************************************/
#ifndef __INCLUDE_NUTTX_LCD_SLCD_CODEC_H
#define __INCLUDE_NUTTX_LCD_SLCD_CODEC_H
+1
View File
@@ -47,6 +47,7 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* IOCTL commands that may be supported by some SLCD drivers */
/* SLCDIOC_GETATTRIBUTES: Get the attributes of the SLCD
+2
View File
@@ -50,7 +50,9 @@
/**************************************************************************************
* Pre-processor Definitions
**************************************************************************************/
/* Configuration **********************************************************************/
/* CONFIG_LCD_SSD1289 - Enables support for the SSD1289-based LCD.
* CONFIG_LCD_NOGETRUN
* NX components need to know if it can read from the LCD or not. If reading from the
+1 -1
View File
@@ -145,7 +145,7 @@ extern "C"
*
****************************************************************************/
struct i2c_master_s; /* Forward reference */
struct i2c_master_s; /* Forward reference */
int st7032_register(FAR const char *devpath, FAR struct i2c_master_s *i2c);
+7 -4
View File
@@ -67,7 +67,8 @@
*
* Required LCD driver settings:
* CONFIG_LCD_ST7567 - Enable ST7567 support
* CONFIG_LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted.
* CONFIG_LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be
* accepted.
* CONFIG_LCD_MAXPOWER should be 2: 0=off, 1=dim, 2=normal
*
* Required SPI driver settings:
@@ -112,7 +113,8 @@ extern "C"
* Input Parameters:
*
* spi - A reference to the SPI driver instance.
* devno - A value in the range of 0 throst7567h CONFIG_ST7567_NINTERFACES-1.
* devno - A value in the range of 0 throst7567h
* CONFIG_ST7567_NINTERFACES-1.
* This allows support for multiple LCD devices.
*
* Returned Value:
@@ -124,7 +126,8 @@ extern "C"
struct lcd_dev_s; /* see nuttx/lcd.h */
struct spi_dev_s; /* see nuttx/spi/spi.h */
FAR struct lcd_dev_s *st7567_initialize(FAR struct spi_dev_s *spi, unsigned int devno);
FAR struct lcd_dev_s *st7567_initialize(FAR struct spi_dev_s *spi,
unsigned int devno);
/****************************************************************************
* Name: st7567_power
@@ -143,7 +146,7 @@ FAR struct lcd_dev_s *st7567_initialize(FAR struct spi_dev_s *spi, unsigned int
* Returned Value:
* None
*
**************************************************************************************/
****************************************************************************/
#ifdef CONFIG_ST7567_POWER
void st7567_power(unsigned int devno, bool on);
+48 -39
View File
@@ -1,17 +1,19 @@
/**************************************************************************************
/****************************************************************************
* include/nuttx/lcd/ug-2864ambag01.h
*
* Driver for Univision UG-2864AMBAG01 OLED display (with SH1101A controller) in SPI
* mode
* Driver for Univision UG-2864AMBAG01 OLED display (with SH1101A controller)
* in SPI mode
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* References:
* 1. Product Specification (Preliminary), Part Name: OEL Display Module, Part ID:
* UG-2864AMBAG01, Doc No: SASI-9015-A, Univision Technology Inc.
* 2. SH1101A, 132 X 64 Dot Matrix OLED/PLED, Preliminary Segment/Common Driver with
* Controller, Sino Wealth
* 1. Product Specification (Preliminary),
* Part Name: OEL Display Module,
* Part ID: UG-2864AMBAG01,
* Doc No: SASI-9015-A, Univision Technology Inc.
* 2. SH1101A, 132 X 64 Dot Matrix OLED/PLED,
* Preliminary Segment/Common Driver with Controller, Sino Wealth
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -40,14 +42,14 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
**************************************************************************************/
****************************************************************************/
#ifndef __INCLUDE_NUTTX_UG_8264AMBAG01_H
#define __INCLUDE_NUTTX_UG_8264AMBAG01_H
/**************************************************************************************
/****************************************************************************
* Included Files
**************************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@@ -57,21 +59,25 @@
#ifdef CONFIG_LCD_UG2864AMBAG01
/**************************************************************************************
/****************************************************************************
* Pre-processor Definitions
**************************************************************************************/
/* Configuration **********************************************************************/
****************************************************************************/
/* Configuration ************************************************************/
/* UG-2864AMBAG01 Configuration Settings:
*
* CONFIG_UG2864AMBAG01_SPIMODE - Controls the SPI mode
* CONFIG_UG2864AMBAG01_FREQUENCY - Define to use a different bus frequency
* CONFIG_UG2864AMBAG01_NINTERFACES - Specifies the number of physical UG-2864AMBAG01
* CONFIG_UG2864AMBAG01_NINTERFACES - Specifies the number of physical
* UG-2864AMBAG01
* devices that will be supported.
*
* Required LCD driver settings:
*
* CONFIG_LCD_UG28AMBAG01 - Enable UG-2864AMBAG01 support
* CONFIG_LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted.
* CONFIG_LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be
* accepted.
* CONFIG_LCD_MAXPOWER must be 1
*
* Option LCD driver settings:
@@ -87,8 +93,8 @@
* "The serial interface consists of serial clock SCL, serial data SI, A0 and
* CS . SI is shifted into an 8-bit shift register on every rising edge of
* SCL in the order of D7, D6, … and D0. A0 is sampled on every eighth clock
* and the data byte in the shift register is written to the display data RAM
* or command register in the same clock."
* and the data byte in the shift register is written to the display data
* RAM or command register in the same clock."
*
* MODE 3:
* Clock polarity: High (CPOL=1)
@@ -100,18 +106,18 @@
#endif
/* "This module determines whether the input data is interpreted as data or
* command. When A0 = “H”, the inputs at D7 - D0 are interpreted as data and be
* written to display RAM. When A0 = “L”, the inputs at D7 - D0 are interpreted
* as command, they will be decoded and be written to the corresponding command
* registers.
* command. When A0 = “H”, the inputs at D7 - D0 are interpreted as data and
* be written to display RAM. When A0 = “L”, the inputs at D7 - D0 are
* interpreted as command, they will be decoded and be written to the
* corresponding command registers.
*/
#ifndef CONFIG_SPI_CMDDATA
# error "CONFIG_SPI_CMDDATA must be defined in your NuttX configuration"
#endif
/* CONFIG_UG2864AMBAG01_NINTERFACES determines the number of physical interfaces
* that will be supported.
/* CONFIG_UG2864AMBAG01_NINTERFACES determines the number of physical
* interfaces that will be supported.
*/
#ifndef CONFIG_UG2864AMBAG01_NINTERFACES
@@ -178,35 +184,37 @@
#define UG_Y1_BLACK 0
#define UG_Y1_WHITE 1
/**************************************************************************************
/****************************************************************************
* Public Types
**************************************************************************************/
****************************************************************************/
/**************************************************************************************
/****************************************************************************
* Public Data
**************************************************************************************/
****************************************************************************/
#ifdef __cplusplus
extern "C"
{
#endif
/**************************************************************************************
/****************************************************************************
* Public Function Prototypes
**************************************************************************************/
****************************************************************************/
/**************************************************************************************
/****************************************************************************
* Name: ug2864ambag01_initialize
*
* Description:
* Initialize the UG-2864AMBAG01 video hardware. The initial state of the
* OLED is fully initialized, display memory cleared, and the OLED ready
* to use, but with the power setting at 0 (full off == sleep mode).
* Initialize the UG-2864AMBAG01 video hardware.
* The initial state of the OLED is fully initialized, display memory
* cleared, and the OLED ready to use, but with the power setting at 0
* (full off == sleep mode).
*
* Input Parameters:
*
* spi - A reference to the SPI driver instance.
* devno - A value in the range of 0 through CONFIG_UG2864AMBAG01_NINTERFACES-1.
* devno - A value in the range of 0 through
* CONFIG_UG2864AMBAG01_NINTERFACES-1.
* This allows support for multiple OLED devices.
*
* Returned Value:
@@ -214,19 +222,20 @@ extern "C"
* On success, this function returns a reference to the LCD object for
* the specified OLED. NULL is returned on any failure.
*
**************************************************************************************/
****************************************************************************/
struct lcd_dev_s; /* See include/nuttx/lcd/lcd.h */
struct spi_dev_s; /* See include/nuttx/spi/spi.h */
FAR struct lcd_dev_s *ug2864ambag01_initialize(FAR struct spi_dev_s *spi,
unsigned int devno);
/************************************************************************************************
/****************************************************************************
* Name: ug2864ambag01_fill
*
* Description:
* This non-standard method can be used to clear the entire display by writing one
* color to the display. This is much faster than writing a series of runs.
* This non-standard method can be used to clear the entire display by
* writing one color to the display. This is much faster than writing a
* series of runs.
*
* Input Parameters:
* priv - Reference to private driver structure
@@ -234,7 +243,7 @@ FAR struct lcd_dev_s *ug2864ambag01_initialize(FAR struct spi_dev_s *spi,
* Assumptions:
* Caller has selected the OLED section.
*
**************************************************************************************/
****************************************************************************/
void ug2864ambag01_fill(FAR struct lcd_dev_s *dev, uint8_t color);
+9 -5
View File
@@ -62,7 +62,8 @@
*
* Required LCD driver settings:
* CONFIG_LCD_UG9664HSWAG01 - Enable UG-9664HSWAG01 support
* CONFIG_LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be accepted.
* CONFIG_LCD_MAXCONTRAST should be 255, but any value >0 and <=255 will be
* accepted.
* CONFIG_LCD_MAXPOWER should be 2: 0=off, 1=dim, 2=normal
*
* Required SPI driver settings:
@@ -108,7 +109,8 @@ extern "C"
* Input Parameters:
*
* spi - A reference to the SPI driver instance.
* devno - A value in the range of 0 through CONFIG_UG9664HSWAG01_NINTERFACES-1.
* devno - A value in the range of 0 through
* CONFIG_UG9664HSWAG01_NINTERFACES-1.
* This allows support for multiple OLED devices.
*
* Returned Value:
@@ -120,7 +122,8 @@ extern "C"
struct lcd_dev_s; /* see nuttx/lcd.h */
struct spi_dev_s; /* see nuttx/spi/spi.h */
FAR struct lcd_dev_s *ug_initialize(FAR struct spi_dev_s *spi, unsigned int devno);
FAR struct lcd_dev_s *ug_initialize(FAR struct spi_dev_s *spi,
unsigned int devno);
/****************************************************************************
* Name: ug_power
@@ -132,14 +135,15 @@ FAR struct lcd_dev_s *ug_initialize(FAR struct spi_dev_s *spi, unsigned int devn
*
* Input Parameters:
*
* devno - A value in the range of 0 through CONFIG_UG9664HSWAG01_NINTERFACES-1.
* devno - A value in the range of 0 through
* CONFIG_UG9664HSWAG01_NINTERFACES-1.
* This allows support for multiple OLED devices.
* on - true:turn power on, false: turn power off.
*
* Returned Value:
* None
*
**************************************************************************************/
****************************************************************************/
#ifdef CONFIG_UG9664HSWAG01_POWER
void ug_power(unsigned int devno, bool on);