MQTT-AC-Controller
MQTT-AC-Controller copied to clipboard
Uncommenting all from display.cpp results a broken build with errors
Compile will fail with latest global U8g4.h library.
> Executing task: platformio run <
Processing nodemcuv2 (platform: espressif8266; board: nodemcuv2; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/nodemcuv2.html
PLATFORM: Espressif 8266 (4.0.1) > NodeMCU 1.0 (ESP-12E Module)
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
PACKAGES:
- framework-arduinoespressif8266 @ 3.30002.0 (3.0.2)
- tool-esptool @ 1.413.0 (4.13)
- tool-esptoolpy @ 1.30000.201119 (3.0.0)
- toolchain-xtensa @ 2.100300.210717 (10.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 50 compatible libraries
Scanning dependencies...
Dependency Graph
|-- PubSubClient-esphomelib @ 2.7.1
|-- WiFiManager @ 0.16.0
| |-- DNSServer @ 1.1.1
| | |-- ESP8266WiFi @ 1.0
| |-- ESP8266WebServer @ 1.0
| | |-- ESP8266WiFi @ 1.0
| |-- ESP8266WiFi @ 1.0
|-- GFX Library for Arduino @ 1.2.3
| |-- U8g2 @ 2.33.3
| | |-- SPI @ 1.0
| | |-- Wire @ 1.0
| |-- SPI @ 1.0
|-- IRremoteESP8266 @ 2.8.2
|-- NTPClient @ 3.2.1
|-- ArduinoJson @ 5.13.4
|-- TinyGSM @ 0.11.5
|-- ESP_AT_Lib @ 1.4.1
|-- U8g2 @ 2.33.3
| |-- SPI @ 1.0
| |-- Wire @ 1.0
|-- ArduinoOTA @ 1.0
| |-- ESP8266WiFi @ 1.0
| |-- ESP8266mDNS @ 1.2
| | |-- ESP8266WiFi @ 1.0
|-- DNSServer @ 1.1.1
| |-- ESP8266WiFi @ 1.0
|-- ESP8266WebServer @ 1.0
| |-- ESP8266WiFi @ 1.0
|-- ESP8266WiFi @ 1.0
|-- SPI @ 1.0
|-- Wire @ 1.0
Building in release mode
Compiling .pio/build/nodemcuv2/src/display.cpp.o
src/display.cpp:52:3: error: invalid preprocessing directive #end; did you mean #endif?
52 | #end
| ^~~
| endif
src/display.cpp:5: error: unterminated #ifndef
5 | #ifndef DISPLAY_M
|
In file included from /home/kalle-hermanni/.platformio/lib/U8g2/src/U8g2lib.h:55,
from src/display.cpp:1:
/home/kalle-hermanni/.platformio/lib/U8g2/src/clib/u8g2.h:441:17: error: expected identifier before '(' token
441 | #define U8G2_R0 (&u8g2_cb_r0)
| ^
src/display.cpp:16:47: note: in expansion of macro 'U8G2_R0'
16 | U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/OLED_ckl, /* data=*/OLED_sdin, /* cs=*/OLED_cs, /* reset=*/OLED_rst); // OLED Display
| ^~~~~~~
src/display.cpp:16:67: error: 'OLED_ckl' is not a type
16 | U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/OLED_ckl, /* data=*/OLED_sdin, /* cs=*/OLED_cs, /* reset=*/OLED_rst); // OLED Display
| ^~~~~~~~
src/display.cpp:16:87: error: 'OLED_sdin' is not a type
16 | U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/OLED_ckl, /* data=*/OLED_sdin, /* cs=*/OLED_cs, /* reset=*/OLED_rst); // OLED Display
| ^~~~~~~~~
src/display.cpp:16:106: error: 'OLED_cs' is not a type
16 | U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/OLED_ckl, /* data=*/OLED_sdin, /* cs=*/OLED_cs, /* reset=*/OLED_rst); // OLED Display
| ^~~~~~~
src/display.cpp:16:126: error: 'OLED_rst' is not a type
16 | U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI u8g2(U8G2_R0, /* clock=*/OLED_ckl, /* data=*/OLED_sdin, /* cs=*/OLED_cs, /* reset=*/OLED_rst); // OLED Display
| ^~~~~~~~
src/display.cpp:50:3: error: expected ';' after class definition
50 | }
| ^
| ;
src/display.cpp: In member function 'void OLEDDisplayManager::setTemp(unsigned int)':
src/display.cpp:21:10: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
21 | u8g2.firstPage();
| ^~~~
src/display.cpp:22:15: error: 'isOn' was not declared in this scope
22 | if (isOn)
| ^~~~
src/display.cpp:26:22: error: invalid use of non-static member function 'void OLEDDisplayManager::setTemp(unsigned int)'
26 | String(setTemp).toCharArray(currentTemp, 3);
| ^~~~~~~
src/display.cpp:19:11: note: declared here
19 | void setTemp(unsigned int temp)
| ^~~~~~~
src/display.cpp:29:19: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
29 | u8g2.setFont(u8g2_font_logisoso50_tn);
| ^~~~
src/display.cpp:30:19: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
30 | u8g2.drawStr(14, 57, currentTemp);
| ^~~~
src/display.cpp:31:19: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
31 | u8g2.setFont(u8g2_font_helvR24_tf);
| ^~~~
src/display.cpp:32:19: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
32 | u8g2.drawUTF8(89, 57, "°c");
| ^~~~
src/display.cpp:34:19: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
34 | u8g2.drawXBMP(200, 37, 58, 27, test_page);
| ^~~~
src/display.cpp:35:20: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
35 | u8g2.drawXBMP(0,0, u8g2_logo_97x51_width, u8g2_logo_97x51_height, u8g2_logo_97x51_bits);
| ^~~~
src/display.cpp:37:20: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
37 | u8g2.setFont(u8g2_font_ncenB10_tr);
| ^~~~
src/display.cpp:38:20: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
38 | u8g2.drawStr(0,12,"On");
| ^~~~
src/display.cpp:39:24: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
39 | } while (u8g2.nextPage());
| ^~~~
src/display.cpp:39:29: error: expected ')' before 'nextPage'
39 | } while (u8g2.nextPage());
| ~ ^~~~~~~~
| )
src/display.cpp:39:29: error: expected ';' before 'nextPage'
39 | } while (u8g2.nextPage());
| ^~~~~~~~
| ;
src/display.cpp:39:29: error: 'nextPage' was not declared in this scope
39 | } while (u8g2.nextPage());
| ^~~~~~~~
src/display.cpp:45:19: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
45 | u8g2.setFont(u8g2_font_ncenB10_tr);
| ^~~~
src/display.cpp:46:19: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
46 | u8g2.drawStr(0, 12, "Off");
| ^~~~
src/display.cpp:47:24: error: invalid use of member function 'U8G2_SSD1322_NHD_256X64_1_3W_SW_SPI OLEDDisplayManager::u8g2(int&, int, int, int, int)' (did you forget the '()' ?)
47 | } while (u8g2.nextPage());
| ^~~~
src/display.cpp:47:29: error: expected ')' before 'nextPage'
47 | } while (u8g2.nextPage());
| ~ ^~~~~~~~
| )
src/display.cpp:47:29: error: expected ';' before 'nextPage'
47 | } while (u8g2.nextPage());
| ^~~~~~~~
| ;
src/display.cpp:47:29: error: 'nextPage' was not declared in this scope
47 | } while (u8g2.nextPage());
| ^~~~~~~~
*** [.pio/build/nodemcuv2/src/display.cpp.o] Error 1
============================================== [FAILED] Took 13.15 seconds ==============================================
The terminal process "platformio 'run'" terminated with exit code: 1.
Terminal will be reused by tasks, press any key to close it.