#include <Adafruit_GFX.h> // https://github.com/adafruit/Adafruit-GFX-Library
#include <Adafruit_ILI9341.h> // https://github.com/adafruit/Adafruit_ILI9341
#include "bitmap1.h";
#define TFT_MISO 15
#define TFT_CLK 18
#define TFT_MOSI 23
#define TFT_DC 2 // incorrect DC to screen pin gives white screen
#define TFT_RST 4
#define TFT_CS 5
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
void setup() {
Serial.begin(115200);
tft.begin(); // landscape, pins left
tft.setRotation(1);
tft.fillScreen(ILI9341_BLACK);
tft.setTextColor(ILI9341_WHITE);
tft.drawRGBBitmap(0, 0, bitmap, 320, 240);
}
void loop() {}Loading
esp32-devkit-c-v4
esp32-devkit-c-v4