XarkLabs / PDQ_GFX_Libs

Optimized fork of Adafruit's GFX library (and drivers) for Arduino (AVR).
114 stars 37 forks source link

didnt get it to run with esp8266 nodemcu1.0 #30

Closed kobraevents closed 1 year ago

kobraevents commented 1 year ago

stock lib is to slow to draw gif files (draw every frame).

i replaced the folder of the zip with the original folder and renamed it. i placed the adafruit original .h and .cpp files in the folder. ive done this for gfx and st7735.

Compiler says "cant compile for board esp8266 nodemcu1"

when i now replace all files in the folder with the original adafruit files it runs (slow).

sketch:

include

include // SD card & FAT filesystem library

include // SPI / QSPI flash library

include // Image-reading functions

include "PDQ_GFX.h" // PDQ: Core graphics library

include "PDQ_ST7735_config.h" // PDQ: ST7735 pins and other setup for this sketch

include // PDQ: Hardware-specific driver library

PDQ_ST7735 tft; Adafruit_Image img; // An image loaded into RAM int32_t width = 0, // BMP image dimensions height = 0; SdFat SD1; // SD card filesystem Adafruit_ImageReader reader(SD1); // Image-reader object, pass in SD filesys void setup(void) { tft.initR(INITR_BLACKTAB); // Init ST7735S chip, black tab tft.setRotation(1); delay(10); SD1.begin(SD_CS, SD_SCK_MHZ(10)); }

void loop() { }

XarkLabs commented 1 year ago

It is only designed for AVR CPUs.