ESP32-WROVER-KIT-LCD-DRIVER/README.md

40 lines
1.9 KiB
Markdown
Raw Permalink Normal View History

2020-11-03 12:53:12 +01:00
# ESP32-WROVER-KIT-LCD-DRIVER
2020-11-05 08:34:21 +01:00
LCD Driver for ST7789V/ILI9341 used ESP32-WROVER-KIT
2020-11-03 20:42:34 +01:00
2020-11-05 08:34:21 +01:00
## Overview
2020-11-03 20:42:34 +01:00
2020-11-10 10:19:20 +01:00
In the [./main](https://git.mosad.xyz/localhorst/ESP32-WROVER-KIT-LCD-DRIVER/src/branch/master/main) directory you can find following file:
2020-11-03 20:42:34 +01:00
2020-11-05 08:49:25 +01:00
[_Example_Main.c_](https://git.mosad.xyz/localhorst/ESP32-WROVER-KIT-LCD-DRIVER/src/branch/master/main/Example_Main.c) Example for this project
2020-11-05 08:34:21 +01:00
2020-11-10 10:19:20 +01:00
In the [./components/lcd/](https://git.mosad.xyz/localhorst/ESP32-WROVER-KIT-LCD-DRIVER/src/branch/master/components/lcd) directory you can find following file:
2020-11-05 08:34:21 +01:00
2020-11-10 10:19:20 +01:00
[_LCD.c_](https://git.mosad.xyz/localhorst/ESP32-WROVER-KIT-LCD-DRIVER/src/branch/master/components/lcd/src/LCD.c) LCD Framebuffer Module
[_LCD.h_](https://git.mosad.xyz/localhorst/ESP32-WROVER-KIT-LCD-DRIVER/src/branch/master/components/lcd/include/LCD.h) Header for importing in user application
[_Driver.c_](https://git.mosad.xyz/localhorst/ESP32-WROVER-KIT-LCD-DRIVER/src/branch/master/components/lcd/src/Driver.c) SPI LCD Driver
[_Driver.h_](https://git.mosad.xyz/localhorst/ESP32-WROVER-KIT-LCD-DRIVER/src/branch/master/components/lcd/include/Driver.h) Header SPI LCD Driver
2020-11-05 08:34:21 +01:00
## Code example
``` c
iLCD_init(); //init lcd screen
iLCD_clearFramebuffer(COLOR_BLACK); //set complete screen to desired color
iLCD_writeString(42,42,"Hello World!",COLOR_WHITE,COLOR_BLACK); //Write text to screen
iLCD_writeString(42,50,"ESP32",COLOR_WHITE,COLOR_GREEN); //Write text to screen
```
2020-11-05 08:49:25 +01:00
<img src="https://git.mosad.xyz/localhorst/ESP32-WROVER-KIT-LCD-DRIVER/raw/branch/master/code_example_output.png" alt="code_example_output" width="500"/>
2020-11-05 08:34:21 +01:00
## Documentation
2020-11-05 08:49:25 +01:00
You can find the Doxygen HTML in [./Doxygen](https://git.mosad.xyz/localhorst/ESP32-WROVER-KIT-LCD-DRIVER/src/branch/master/Doxygen/html)
2020-11-05 08:34:21 +01:00
## Existing code used
https://github.com/Everlers/demo_esp_lcd_st7789v
2020-11-03 23:53:19 +01:00
https://github.com/espressif/esp-idf/blob/master/examples/peripherals/spi_master/lcd