# ESP32-WROVER-KIT-LCD-DRIVER: main/LCD.h Source File

LCD.h
Go to the documentation of this file.
#ifndef __LCD_H
#define __LCD_H
#include <stdio.h>
#include <stdlib.h>
#include "driver/spi_master.h"
#include "driver/gpio.h"
#include <string.h>
#include "esp_system.h"
#define COLOR_RED 0xF800
#define COLOR_GREEN 0x07E0
#define COLOR_BLUE 0x001F
#define COLOR_WHITE 0xFFFF
#define COLOR_BLACK 0x0000
esp_err_t iLCD_init(void);
esp_err_t iLCD_clearFramebuffer(uint16_t u16Color);
esp_err_t iLCD_writeString(uint16_t u16xPos, uint16_t u16yPos, char *pcText, uint16_t u16ColorFont, uint16_t u16ColorBackground);
#endif /* __LCD_H */
COLOR_WHITE
#define COLOR_WHITE
Definition: LCD.h:22
LCD_HIGH
#define LCD_HIGH
Definition: Driver.h:34
COLOR_GREEN
#define COLOR_GREEN
Definition: LCD.h:20
iLCD_writeString
esp_err_t iLCD_writeString(uint16_t u16xPos, uint16_t u16yPos, char *pcText, uint16_t u16ColorFont, uint16_t u16ColorBackground)
write string/text into framebuffer
Definition: LCD.c:202
vLCD_writeChar
void vLCD_writeChar(uint16_t u16xPos, uint16_t u16yPos, char cCharacter, uint16_t u16ColorFont, uint16_t u16ColorBackground)
write string/text into framebuffer
Definition: LCD.c:235
iLCD_allocateFramebuffer
esp_err_t iLCD_allocateFramebuffer(uint16_t ***pData)
allocate framebuffer
Definition: LCD.c:151
app_main
void app_main(void)
main task
Definition: Example_Main.c:26
LCD.h
vDriver_init
esp_err_t vDriver_init(void)
Initialize the driver.
Definition: Driver.c:130
LCD_WIDTH
#define LCD_WIDTH
Definition: Driver.h:33
iLCD_clearFramebuffer
esp_err_t iLCD_clearFramebuffer(uint16_t u16Color)
clear complete framebuffer with a color
Definition: LCD.c:179
iLCD_writeString
esp_err_t iLCD_writeString(uint16_t u16xPos, uint16_t u16yPos, char *pcText, uint16_t u16ColorFont, uint16_t u16ColorBackground)
write string/text into framebuffer
Definition: LCD.c:202
COLOR_BLACK
#define COLOR_BLACK
Definition: LCD.h:23
iDriver_writeFramebuffer
esp_err_t iDriver_writeFramebuffer(uint16_t ***pu16Framebuffer)
write framebuffer to LCD via SPI
Definition: Driver.c:341
iLCD_init
esp_err_t iLCD_init(void)
init
Definition: LCD.c:130
iLCD_init
esp_err_t iLCD_init(void)
init
Definition: LCD.c:130
pu16Framebuffer
uint16_t ** pu16Framebuffer
Definition: LCD.c:23
font6_8
static const uint8_t font6_8[][6]
Definition: LCD.c:26
Driver.h
iLCD_clearFramebuffer
esp_err_t iLCD_clearFramebuffer(uint16_t u16Color)
clear complete framebuffer with a color
Definition: LCD.c:179