|
LCD-ESP32-Driver 1.0
Project includes component for controlling LCD displays. Currently supports only one LCD controller - SSD1283A but it may change in the future.
|
Contains driver functions to communicate with LCD display using different protocols and controllers. More...
#include "lcd_low.h"Go to the source code of this file.
Functions | |
| LCD_error_t | lcd__Init (LCD_handle_t device) |
| Initializes the specific LCD device. More... | |
| LCD_error_t | lcd__DisplayOn (LCD_handle_t device) |
| Turns on the LCD display for the specific device. More... | |
| LCD_error_t | lcd__DisplayOff (LCD_handle_t device) |
| Turns off the LCD display for the specific device. More... | |
| LCD_error_t | lcd__DrawRect (LCD_handle_t device, const uint16_t x, const uint16_t y, const uint16_t width, const uint16_t height, const uint16_t color) |
| Draws rectangle on the LCD display in specific position and color. More... | |
| LCD_error_t | lcd__DrawImage (LCD_handle_t device, const uint16_t x, const uint16_t y, const LCD_image_t *image) |
| Draws image on the LCD display in specific position. More... | |
| LCD_error_t | lcd__DrawText (LCD_handle_t device, uint16_t x, uint16_t y, const char *text, const int16_t letterSpacing, const int16_t lineSpacing, const LCD_font_t *font, const uint16_t fontColor, const uint16_t bgrColor) |
| Draws text on the LCD display with specified properties. More... | |
| LCD_error_t | lcd__ClearScreen (LCD_handle_t device, const uint16_t color) |
| Clears the screen of the LCD display with specified color. More... | |
| LCD_error_t | lcd__Destroy (LCD_handle_t *device) |
| Destroys the specific LCD driver instance. More... | |
Contains driver functions to communicate with LCD display using different protocols and controllers.
| LCD_error_t lcd__ClearScreen | ( | LCD_handle_t | device, |
| const uint16_t | color | ||
| ) |
Clears the screen of the LCD display with specified color.
| device | Handle of the selected LCD device |
| color | 16-bit color value (format RGB565) to fill the screen |
| LCD_error_t lcd__Destroy | ( | LCD_handle_t * | device | ) |
Destroys the specific LCD driver instance.
Frees the memory allocated dynamically for the driver instance.
| device | Pointer to handle for the selected LCD device |
| LCD_error_t lcd__DisplayOff | ( | LCD_handle_t | device | ) |
Turns off the LCD display for the specific device.
| device | Handle of the selected LCD device |
| LCD_error_t lcd__DisplayOn | ( | LCD_handle_t | device | ) |
Turns on the LCD display for the specific device.
| device | Handle for the selected LCD device |
| LCD_error_t lcd__DrawImage | ( | LCD_handle_t | device, |
| const uint16_t | x, | ||
| const uint16_t | y, | ||
| const LCD_image_t * | image | ||
| ) |
Draws image on the LCD display in specific position.
| device | Handle of the selected LCD device |
| x | Position of the top left pixel of the image in X-axis |
| y | Position of the top left pixel of the image in Y-axis |
| image | Pointer to the image to be drawn |
| LCD_error_t lcd__DrawRect | ( | LCD_handle_t | device, |
| const uint16_t | x, | ||
| const uint16_t | y, | ||
| const uint16_t | width, | ||
| const uint16_t | height, | ||
| const uint16_t | color | ||
| ) |
Draws rectangle on the LCD display in specific position and color.
| device | Handle of the selected LCD device |
| x | Position of the top left pixel of the rectangle in X-axis |
| y | Position of the top left pixel of the rectangle in Y-axis |
| width | Width of the rectangle (in pixels) |
| height | Height of the rectangle (in pixels) |
| color | 16-bit color value (format RGB565) of the rectangle |
| LCD_error_t lcd__DrawText | ( | LCD_handle_t | device, |
| uint16_t | x, | ||
| uint16_t | y, | ||
| const char * | text, | ||
| const int16_t | letterSpacing, | ||
| const int16_t | lineSpacing, | ||
| const LCD_font_t * | font, | ||
| const uint16_t | fontColor, | ||
| const uint16_t | bgrColor | ||
| ) |
Draws text on the LCD display with specified properties.
| device | Handle of the selected LCD device |
| x | Position of the top left pixel of the first character in X-axis |
| y | Position of the top left pixel of the first character in Y-axis |
| text | Text to be drawn |
| letterSpacing | Letter spacing value in pixels |
| lineSpacing | Line spacing value in pixels |
| font | Pointer to the font of the drawn text |
| fontColor | 16-bit color value (format RGB565) of the font |
| bgrColor | 16-bit color value (format RGB565) of the text background |
| LCD_error_t lcd__Init | ( | LCD_handle_t | device | ) |
Initializes the specific LCD device.
Prepares the LCD display to work with the driver.
| device | Handle for the selected LCD device |