ESP32-WROVER-KIT-LCD-DRIVER/components/lcd/include/LCD.h

30 lines
636 B
C
Raw Normal View History

2020-11-03 15:32:38 +01:00
/*! @file LCD.h
@brief
@author Hendrik Schutter
@version V1.0
@date 03.11.2020
*/
#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"
2020-11-03 23:53:19 +01:00
#define COLOR_RED 0xF800
2020-11-03 15:32:38 +01:00
#define COLOR_GREEN 0x07E0
#define COLOR_BLUE 0x001F
2020-11-03 23:53:19 +01:00
#define COLOR_WHITE 0xFFFF
2020-11-03 15:32:38 +01:00
#define COLOR_BLACK 0x0000
2020-11-03 23:53:19 +01:00
esp_err_t iLCD_init(void);
esp_err_t iLCD_clearFramebuffer(uint16_t u16Color);
2020-11-04 22:28:24 +01:00
esp_err_t iLCD_writeString(uint16_t u16xPos, uint16_t u16yPos, char *pcText, uint16_t u16ColorFont, uint16_t u16ColorBackground);
2020-11-03 15:32:38 +01:00
#endif /* __LCD_H */