ESP32-WROVER-KIT-LCD-DRIVER
|
sets and writes framebuffer More...
Functions | |
esp_err_t | iLCD_allocateFramebuffer (uint16_t ***pData) |
allocate framebuffer More... | |
void | vLCD_writeChar (uint16_t u16xPos, uint16_t u16yPos, char cCharacter, uint16_t u16ColorFont, uint16_t u16ColorBackground) |
write string/text into framebuffer More... | |
esp_err_t | iLCD_init (void) |
init More... | |
esp_err_t | iLCD_clearFramebuffer (uint16_t u16Color) |
clear complete framebuffer with a color More... | |
esp_err_t | iLCD_writeString (uint16_t u16xPos, uint16_t u16yPos, char *pcText, uint16_t u16ColorFont, uint16_t u16ColorBackground) |
write string/text into framebuffer More... | |
Variables | |
uint16_t ** | pu16Framebuffer |
static const uint8_t | font6_8 [][6] |
sets and writes framebuffer
This code displays graphics on the 320x240 LCD on an ESP-WROVER_KIT board.
Some info about the ILI9341/ST7789V: It has an C/D line, which is connected to a GPIO here. It expects this line to be low for a command and high for data. We use a pre-transmit callback here to control that line: every transaction has as the user-definable argument the needed state of the D/C line and just before the transaction is sent, the callback will set this line to the correct state.
esp_err_t iLCD_allocateFramebuffer | ( | uint16_t *** | pData | ) |
allocate framebuffer
pointer | of framebuffer two dimensional array |
esp_err_t iLCD_clearFramebuffer | ( | uint16_t | u16Color | ) |
clear complete framebuffer with a color
RGB586 | color code |
esp_err_t iLCD_init | ( | void | ) |
init
void |
esp_err_t iLCD_writeString | ( | uint16_t | u16xPos, |
uint16_t | u16yPos, | ||
char * | pcText, | ||
uint16_t | u16ColorFont, | ||
uint16_t | u16ColorBackground | ||
) |
write string/text into framebuffer
uint16_t | u16xPos |
uint16_t | u16yPos |
char | *pcText |
RGB586 | color code for font uint16_t u16ColorFont |
RGB586 | color code for background uint16_t u16ColorBackground |
void vLCD_writeChar | ( | uint16_t | u16xPos, |
uint16_t | u16yPos, | ||
char | cCharacter, | ||
uint16_t | u16ColorFont, | ||
uint16_t | u16ColorBackground | ||
) |
write string/text into framebuffer
uint16_t | u16xPos |
uint16_t | u16yPos |
char | cCharacter |
RGB586 | color code for font uint16_t u16ColorFont |
RGB586 | color code for background uint16_t u16ColorBackground |
|
static |
uint16_t** pu16Framebuffer |