ESP8266 WeatherStation Color

Do you like this post? Writing posts, developing libraries and programming online font creators is actually hard work. I order most of my electronics from a Chinese website called Banggood. It is save and the items usually arrive in good quality. With every order you do there by following this link you are supporting the blog. Thank you!

Yesterday I started playing around with a TFT color display connected to the ESP8266. First I adapted example code to download BMP files to the flash memory, and boy, this display has some nice intense colors!

To get an idea how a color version of the Weatherstation would look like I got a little creative and designed a image mockup and uploaded it to the ESP-TFT combo. This is just a static image for now but the images, fonts and colors could look exactly like that, except for anti- aliased fonts. Leave me a comment if you like it!

Static Mockup for ESP8266 WeatherStation Color
Static Mockup for ESP8266 WeatherStation Color

Related Products:

2.9″ ESPaper Lite Kit

$44.90 $39.90 Add to cart

Posted by squix78

14 comments

  1. Hello Daniel,
    right at the moment I am doing the same! I got a 320 x 240 2,6″ display and I am building a “WetterUhr” based on a NodeMCU ESP8266 12E.
    What kind of display do you use and what library?
    How did you get these colored weather icons on the display? As a font or as a bitmap?
    I am using a display from digole which is connected to the ESP8266 via I2C

    Best regards
    Thomas

  2. Hi Daniel.
    Just curious if you are going to make a kit with this TFT too.
    A “cinemascope weatherstation” ..
    Or it could show at the same time the weather and the planes.. 🙂
    A “cinemascope weather-planes-station” ..
    Thanks, and compliments!!

    –Federico

    • Hi Thomas. Yes! Thanks a lot! Sorry for not responding earlier to your mail, but I was busy with the launch of my Weather Station Kit on the Amazon Platform. Your version looks marvellous and I also like the Lego housing a lot(quite literally “housing” actually:-)). I will post those pictures in the next days!

  3. Hi Daniel,
    For the color version of the Weather Station, which version of Arduino IDE and ESP8266 core is supported? I am having the following errors while compiling?

    Arduino: 1.6.11 (Windows 10), Board: “NodeMCU 1.0 (ESP-12E Module), 80 MHz, 115200, 4M (3M SPIFFS)”

    Build options changed, rebuilding all
    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_algobase.h:64:0,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:62,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_pair.h:194:21: error: macro “swap” requires 2 arguments, but only 1 given

    swap(pair& __p)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_pair.h:254:50: error: macro “swap” passed 4 arguments, but takes just 2

    swap(pair& __x, pair& __y)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_pair.h:255:35: error: macro “swap” requires 2 arguments, but only 1 given

    noexcept(noexcept(__x.swap(__y)))

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_pair.h:256:19: error: macro “swap” requires 2 arguments, but only 1 given

    { __x.swap(__y); }

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:63:0,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\allocator.h:209:32: error: macro “swap” requires 2 arguments, but only 1 given

    __c.get_allocator()).swap(__c);

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\string:52:0,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\stdexcept:39,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\array:38,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:39,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:55,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:79,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\basic_string.h:583:18: error: macro “swap” requires 2 arguments, but only 1 given

    this->swap(__str);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\basic_string.h:1081:18: error: macro “swap” requires 2 arguments, but only 1 given

    this->swap(__str);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\basic_string.h:1790:29: error: macro “swap” requires 2 arguments, but only 1 given

    swap(basic_string& __s);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\basic_string.h:2718:47: error: macro “swap” passed 6 arguments, but takes just 2

    basic_string& __rhs)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\basic_string.h:2719:23: error: macro “swap” requires 2 arguments, but only 1 given

    { __lhs.swap(__rhs); }

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\string:53:0,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\stdexcept:39,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\array:38,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:39,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:55,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:79,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\basic_string.tcc:519:27: error: macro “swap” requires 2 arguments, but only 1 given

    swap(basic_string& __s)

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:39:0,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:55,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:79,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\array:107:26: error: macro “swap” requires 2 arguments, but only 1 given

    swap(array& __other)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\array:262:56: error: macro “swap” passed 4 arguments, but takes just 2

    swap(array& __one, array& __two)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\array:263:39: error: macro “swap” requires 2 arguments, but only 1 given

    noexcept(noexcept(__one.swap(__two)))

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\array:264:23: error: macro “swap” requires 2 arguments, but only 1 given

    { __one.swap(__two); }

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:55:0,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:79,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:505:23: error: macro “swap” requires 2 arguments, but only 1 given

    swap(tuple& __in)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:515:23: error: macro “swap” requires 2 arguments, but only 1 given

    void swap(tuple&) noexcept { /* no-op */ }

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:665:23: error: macro “swap” requires 2 arguments, but only 1 given

    swap(tuple& __in)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:1049:35: error: macro “swap” requires 2 arguments, but only 1 given

    noexcept(noexcept(__x.swap(__y)))

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\tuple:1050:19: error: macro “swap” requires 2 arguments, but only 1 given

    { __x.swap(__y); }

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:79:0,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:2228:16: error: macro “swap” requires 2 arguments, but only 1 given

    __x.swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:2268:26: error: macro “swap” requires 2 arguments, but only 1 given

    function(__x).swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:2286:37: error: macro “swap” requires 2 arguments, but only 1 given

    function(std::move(__x)).swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:2329:52: error: macro “swap” requires 2 arguments, but only 1 given

    function(std::forward(__f)).swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:2338:28: error: macro “swap” requires 2 arguments, but only 1 given

    function(__f).swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:2351:30: error: macro “swap” requires 2 arguments, but only 1 given

    void swap(function& __x)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\functional:2567:19: error: macro “swap” requires 2 arguments, but only 1 given

    { __x.swap(__y); }

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:81:0,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\unique_ptr.h:266:27: error: macro “swap” requires 2 arguments, but only 1 given

    swap(unique_ptr& __u) noexcept

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\unique_ptr.h:457:27: error: macro “swap” requires 2 arguments, but only 1 given

    swap(unique_ptr& __u) noexcept

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\unique_ptr.h:483:28: error: macro “swap” passed 4 arguments, but takes just 2

    unique_ptr& __y) noexcept

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\unique_ptr.h:484:19: error: macro “swap” requires 2 arguments, but only 1 given

    { __x.swap(__y); }

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr.h:52:0,

    from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:82,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:852:43: error: macro “swap” requires 2 arguments, but only 1 given

    __shared_ptr(std::move(__r)).swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:860:41: error: macro “swap” requires 2 arguments, but only 1 given

    __shared_ptr(std::move(__r)).swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:868:43: error: macro “swap” requires 2 arguments, but only 1 given

    __shared_ptr(std::move(__r)).swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:876:43: error: macro “swap” requires 2 arguments, but only 1 given

    __shared_ptr(std::move(__r)).swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:882:34: error: macro “swap” requires 2 arguments, but only 1 given

    { __shared_ptr().swap(*this); }

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:890:32: error: macro “swap” requires 2 arguments, but only 1 given

    __shared_ptr(__p).swap(*this);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:896:37: error: macro “swap” requires 2 arguments, but only 1 given

    { __shared_ptr(__p, __d).swap(*this); }

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:901:60: error: macro “swap” requires 2 arguments, but only 1 given

    { __shared_ptr(__p, __d, std::move(__a)).swap(*this); }

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:1145:66: error: macro “swap” passed 4 arguments, but takes just 2

    swap(__shared_ptr& __a, __shared_ptr& __b) noexcept

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:1146:19: error: macro “swap” requires 2 arguments, but only 1 given

    { __a.swap(__b); }

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:1291:32: error: macro “swap” requires 2 arguments, but only 1 given

    { __weak_ptr().swap(*this); }

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:1294:27: error: macro “swap” requires 2 arguments, but only 1 given

    swap(__weak_ptr& __s) noexcept

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:1321:62: error: macro “swap” passed 4 arguments, but takes just 2

    swap(__weak_ptr& __a, __weak_ptr& __b) noexcept

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr_base.h:1322:19: error: macro “swap” requires 2 arguments, but only 1 given

    { __a.swap(__b); }

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\memory:82:0,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\cores\esp8266/FS.h:24,

    from sketch\GfxUi.h:22,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:27:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr.h:432:19: error: macro “swap” requires 2 arguments, but only 1 given

    { __a.swap(__b); }

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\shared_ptr.h:518:19: error: macro “swap” requires 2 arguments, but only 1 given

    { __a.swap(__b); }

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\vector:64:0,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiMulti.h:33,

    from sketch\WebResource.h:24,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:34:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_vector.h:1108:23: error: macro “swap” requires 2 arguments, but only 1 given

    swap(vector& __x)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_vector.h:1451:60: error: macro “swap” passed 4 arguments, but takes just 2

    swap(vector& __x, vector& __y)

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_vector.h:1452:19: error: macro “swap” requires 2 arguments, but only 1 given

    { __x.swap(__y); }

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\vector:65:0,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiMulti.h:33,

    from sketch\WebResource.h:24,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:34:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_bvector.h:645:21: error: macro “swap” requires 2 arguments, but only 1 given

    this->swap(__x);

    ^

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\stl_bvector.h:835:21: error: macro “swap” requires 2 arguments, but only 1 given

    swap(vector& __x)

    ^

    In file included from c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\vector:69:0,

    from C:\Users\R-B\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFiMulti.h:33,

    from sketch\WebResource.h:24,

    from C:\Users\R-B\Favorites\Downloads\esp8266-weather-station-color-master\esp8266-weather-station-color-master\esp8266-weather-station-color\esp8266-weather-station-color.ino:34:

    c:\users\r-b\appdata\local\arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\1.20.0-26-gb404fb9-2\xtensa-lx106-elf\include\c++\4.8.2\bits\vector.tcc:224:20: error: macro “swap” requires 2 arguments, but only 1 given

    __tmp.swap(*this);

    ^

    exit status 1
    Error compiling for board NodeMCU 1.0 (ESP-12E Module).

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

  4. Cool project! I am trying to use a different display but cant get it to compile:
    #include
    TFT_22_ILI9225 tft = TFT_22_ILI9225(TFT_RST, TFT_RS, TFT_CS, TFT_LED);
    I changed some references from ‘Adafruit_ILI9341’ to ‘TFT_22_ILI9225’ in three files: the .ino, GfxUi.cpp and GfxUi.h
    But unfortunately i keep getting errors like the following:
    sketch/GfxUi.cpp: In member function ‘void GfxUi::drawString(int, int, char*)’:
    GfxUi.cpp:30: error: ‘class TFT_22_ILI9225’ has no member named ‘setTextWrap’
    _tft->setTextWrap(false);
    ^
    GfxUi.cpp:31: error: ‘class TFT_22_ILI9225’ has no member named ‘getTextBounds’
    _tft->getTextBounds(text, 0, 0, &x1, &y1, &w, &h);

    Any idea what i am doing wrong?

  5. Forgot to mention: The reason i asked is because setTextWrap and getTextBounds seem to be provided for by Adafruit_GFX.h and not by Adafruit_ILI9341. But also if i include Adafruit_GFX.h in TFT_22_ILI9225 i get the same erors…

    • Hm, hard to tell. The library I found for this controller doesn’t seem to be compatible with the Adafruit library, but I might be wrong…

  6. You’re probably right. I have ordered some ILI9341′ s (also with touchpanel) on aliexpress a couple of minutes ago 🙂

Leave a Reply