![]() |
Ultibo API
C/C++ API for Ultibo Core
|
Go to the source code of this file.
Data Structures | |
| struct | _I2CLCD_DISPLAY |
Macros | |
| #define | I2CLCD_CONSOLE_DESCRIPTION "Generic I2C LCD" |
| Description of I2CLCD device. | |
| #define | I2CLCD_SIGNATURE 0x00CF8574 |
| #define | I2CLCD_PIN_RS GPIO_PIN_0 |
| GPIO pin for the LCD RS line. | |
| #define | I2CLCD_PIN_RW GPIO_PIN_1 |
| GPIO pin for the LCD RW line. | |
| #define | I2CLCD_PIN_EN GPIO_PIN_2 |
| GPIO pin for the LCD EN line. | |
| #define | I2CLCD_PIN_BACKLIGHT GPIO_PIN_3 |
| GPIO pin for the LCD Backlight. | |
| #define | I2CLCD_PIN_D4 GPIO_PIN_4 |
| GPIO pin for the LCD D4 line. | |
| #define | I2CLCD_PIN_D5 GPIO_PIN_5 |
| GPIO pin for the LCD D5 line. | |
| #define | I2CLCD_PIN_D6 GPIO_PIN_6 |
| GPIO pin for the LCD D6 line. | |
| #define | I2CLCD_PIN_D7 GPIO_PIN_7 |
| GPIO pin for the LCD D7 line. | |
Typedefs | |
| typedef struct _I2CLCD_DISPLAY | I2CLCD_DISPLAY |
Functions | |
| HANDLE STDCALL | i2clcd_start (char *device, uint16_t address, uint32_t width, uint32_t height) |
| Start the I2CLCD driver and register the GPIO and Console devices associated with the display. | |
| BOOL STDCALL | i2clcd_stop (HANDLE handle) |
| Stop the I2CLCD driver and deregister the GPIO and Console devices associated with the display. | |
| BOOL STDCALL | i2clcd_backlight_on (HANDLE handle) |
| Turn on the backlight on the I2CLCD display. | |
| BOOL STDCALL | i2clcd_backlight_off (HANDLE handle) |
| Turn off the backlight on the I2CLCD display. | |
| #define I2CLCD_CONSOLE_DESCRIPTION "Generic I2C LCD" |
Description of I2CLCD device.
I2CLCD specific constants
| #define I2CLCD_SIGNATURE 0x00CF8574 |
| #define I2CLCD_PIN_RS GPIO_PIN_0 |
GPIO pin for the LCD RS line.
I2CLCD GPIO constants
| #define I2CLCD_PIN_RW GPIO_PIN_1 |
GPIO pin for the LCD RW line.
| #define I2CLCD_PIN_EN GPIO_PIN_2 |
GPIO pin for the LCD EN line.
| #define I2CLCD_PIN_BACKLIGHT GPIO_PIN_3 |
GPIO pin for the LCD Backlight.
| #define I2CLCD_PIN_D4 GPIO_PIN_4 |
GPIO pin for the LCD D4 line.
| #define I2CLCD_PIN_D5 GPIO_PIN_5 |
GPIO pin for the LCD D5 line.
| #define I2CLCD_PIN_D6 GPIO_PIN_6 |
GPIO pin for the LCD D6 line.
| #define I2CLCD_PIN_D7 GPIO_PIN_7 |
GPIO pin for the LCD D7 line.
| typedef struct _I2CLCD_DISPLAY I2CLCD_DISPLAY |
I2CLCD specific types
Start the I2CLCD driver and register the GPIO and Console devices associated with the display.
I2CLCD Functions
| Device | The I2C device that the PCF8574 I/O Expander on the display is connected to |
| Address | The I2C address of the PCF8574 I/O Expander on the display |
| Width | The width in columns of the HD44780 LCD on the display |
| Height | The height in rows of the HD44780 LCD on the display |
Stop the I2CLCD driver and deregister the GPIO and Console devices associated with the display.
| Handle | The handle of the I2CLCD or INVALID_HANDLE_VALUE for the default display |
Turn on the backlight on the I2CLCD display.
| Handle | The handle of the I2CLCD or INVALID_HANDLE_VALUE for the default display |