Updated documentation

This commit is contained in:
sam
2024-03-01 14:00:45 +01:00
parent ff296eefb0
commit 5c59dc033c

View File

@@ -56,4 +56,14 @@ To clear the screen for new text you can use the following code:
```cpp ```cpp
tft.fillScreen(0x0000); //clear the screen tft.fillScreen(0x0000); //clear the screen
``` ```
## Wiring
You can connect the wires to any pin except the vcc and the ground. The vcc and ground need to be connected to the 3.3v and ground of the esp32. The other pins can be connected to any pin of the esp32.
![TFT screen diagram](../assets/imagesSp2/IMG_1131.jpg)
We aren't using the cs2 and the pen pin because we arent utilizing the touch function of the screen.
## Sources
* https://www.tinytronics.nl/en/displays/tft/4-inch-tft-display-320*480-pixels-with-touchscreen-spi-st7796s Source for Driver
* https://github.com/prenticedavid/Adafruit_ST7796S_kbv Download link for the library