ESP8266 1.8″ TFT Speed photo without SD card SPIFFS

ESP8266 Modules (on example WEMOS-D1) contain 2 MB SPI flash memory. This huge flash memory are able to store RAW images as well.

As you can see, the RAW array photo loading faster than SD Card or any other alternative storage types.

“tft.drawRGBBitmap” command send array via SPI into 1.8inch TFT within ST7735 driver IC.

#include       // Core graphics library
#include    // Hardware-specific library for ST7735
#include                // SPI Library
#include "photos.h"            // Photo Container Header File

#define TFT_CS         4       // ST7735 1.8" TFT CS
#define TFT_RST        2       // ST7735 1.8" TFT RST
#define TFT_DC         0       // ST7735 1.8" TFT DC

//
  
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);



void setup(void) {
  tft.initR(INITR_BLACKTAB);      // Init ST7735S chip, black tab
}

void loop() {
  tft.fillScreen(ST77XX_WHITE);
  tft.drawRGBBitmap(0, 0, eagle, 128, 160);
  delay(2000);
  tft.drawRGBBitmap(0, 0, cat, 128, 160);
  delay(2000);
  tft.drawRGBBitmap(0, 0, dog, 128, 160);
  delay(2000);
}

Connection

Wemos D11.8″ TFT ST7735
5V
GND
D2
D4
D3
D7
D5
3.3V
P1 (VCC)
P2(GND)
P3(CS)
P4(RST)
P5(A0)
P6(SDA)
P7(SCK)
P8(LED+)

Arduino Demo Code

(You should download lcd-image-converter to create array from photos.)

1.8″ TFT Datasheet

Leave a Reply

Your email address will not be published. Required fields are marked *