fowlerk / ESP8266-Color-Weather-Station-Touchscreen-v15

Enhanced ESP8266 Color Weather Station w/ Touchscreen
MIT License
7 stars 4 forks source link

I tried your Version 15 but can't compile #4

Open dansche opened 4 years ago

dansche commented 4 years ago

Arduino: 1.8.8 (Windows 10), Board: "WeMos D1 R1, 80 MHz, Flash, 4M (3M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

sketch\GfxUi.cpp: In member function 'void GfxUi::drawBmp(String, uint8_t, uint16_t)':

GfxUi.cpp:208:53: error: no matching function for call to 'Adafruit_ILI9341::writePixel(uint16_t)'

           _tft->writePixel(_tft->color565(r,g,b));

                                                 ^

sketch\GfxUi.cpp:208:53: note: candidate is:

In file included from sketch\GfxUi.cpp:7:0:

C:\Users\?????\Documents\Arduino\libraries\Adafruit-GFX-Library-master/Adafruit_SPITFT.h:212:8: note: virtual void Adafruit_SPITFT::writePixel(int16_t, int16_t, uint16_t)

void writePixel(int16_t x, int16_t y, uint16_t color);

    ^

C:\Users\?????\Documents\Arduino\libraries\Adafruit-GFX-Library-master/Adafruit_SPITFT.h:212:8: note: candidate expects 3 arguments, 1 provided

exit status 1 no matching function for call to 'Adafruit_ILI9341::writePixel(uint16_t)'

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

This is the Display I have, and connected is everything as you stated in your list here. so soldering is correct.

https://www.aliexpress.com/item/32418555703.html?spm=a2g0s.9042311.0.0.27424c4dsTXapU

fowlerk commented 4 years ago

Hi @dansche... This version (v15) is quite old now and as noted in the README, was based on the WeatherUnderground data, which no longer provides free API's. So, unless you have a paid API, you won't be able to run this one. Instead, if you want to try the OpenWeatherMap re-write, try my v17 here: [https://github.com/fowlerk/ESP8266-Color-Weather-Station-v17]

Pay close attention to the core and library versions noted in the README...I suspect the error you're getting is related to a change in the Adafruit GFX library for a newer version than I used. A similar error was reported on v17 recently, and once recompiled with the version noted, it compiled fine.

I have not had time to track down the changes made to the latest library which caused the problem in order to correct it.