/* COLLEGAMENTI
+-------------------------+
| DISPLAY | ESP32 |
+-------------+-----------+
| VCC | 3.3V |
| GND | GND |
| CS | GPIO15 |
| RESET | GPIO04 |
| DC | GPIO02 |
| MOSI | GPIO23 |
| SCK | GPIO18 |
| LED | - |
| MIISO | GPIO19 |
+-------------+-----------+
*/
// Libreria
#include <TFT_eSPI.h>
#include <SPI.h>
#define TFT_CS 15
#define TFT_DC 2
#define TFT_MOSI 23
#define TFT_SCLK 18
TFT_eSPI tft = TFT_eSPI();
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}