Using MiniGrafx library with ST7789
tochinet opened this issue · 1 comments
I recently discovered the Lilygo T-display board (ESP32+ST7789), which I intend to use as Wifi-enabled replacement for an older 868MHz board (AVR). I tried several weather station sketches, and finally got one working from David Bird, using ArduinoJson v6, serving the weather as a web server, but not on the LCD.
I'd like to use your minigrafx library and carousel, but I get the error :
ESP_OWM_WebServer:75: error: no matching function for call to 'MiniGrafx::MiniGrafx(Adafruit_ST7789*, int&, uint16_t [1])'
MiniGrafx gfx = MiniGrafx(&tft, BITS_PER_PIXEL, palette); // ThingPulse add-on
While tft is defined right above as 👍
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
The contributing.MD found on the adafruit fork says the first step is to create an issue, so here I am.
Are there specific requirements for the tft object that adafruit drivers do not support ?
Since the adafruit library takes the width and height as a parameter for init(), I added those to the minigrafx constructor, and replaced gfx.init by buffer .initialize. The same error still occurs.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.