1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino: In function 'void updateWeather()':
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino:316:35: error: 'weatherApiKey' was not declared in this scope
String(city) + "&appid=" + String(weatherApiKey) + "&units=metric&lang=zh_tw";
^~~~~~~~~~~~~
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino:316:35: note: suggested alternative: 'weatherApiUrl'
String(city) + "&appid=" + String(weatherApiKey) + "&units=metric&lang=zh_tw";
^~~~~~~~~~~~~
weatherApiUrl
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino: In function 'void updateSensorData()':
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino:346:11: error: 'class AHT20' has no member named 'isConnected'
if (aht20.isConnected()) {
^~~~~~~~~~~
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino: In function 'void drawAirDetailPage()':
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino:509:18: error: 'TFT_LIGHTGREEN' was not declared in this scope
tft.setTextColor(TFT_LIGHTGREEN);
^~~~~~~~~~~~~~
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino:509:18: note: suggested alternative: 'TFT_LIGHTGREY'
tft.setTextColor(TFT_LIGHTGREEN);
^~~~~~~~~~~~~~
TFT_LIGHTGREY
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino: In function 'void drawSystemPage()':
C:\Users\User\Downloads\exp\Examples\07_NTP\07_NTP.ino:667:31: error: 'class AHT20' has no member named 'isConnected'
tft.printf("AHT20: %s", aht20.isConnected() ? "正常" : "異常");
^~~~~~~~~~~

exit status 1

Compilation error: 'weatherApiKey' was not declared in this scope