-
Notifications
You must be signed in to change notification settings - Fork 41
Description
I admit I'm new to this stuff, I followed what others already said which libraries should work but always end with this error when trying to compile.
In file included from C:\Users\irate\Desktop\M5PaperWeather-master\weather\Weather.h:26,
from C:\Users\irate\Desktop\M5PaperWeather-master\weather\Data.h:24,
from C:\Users\irate\Desktop\M5PaperWeather-master\weather\weather.ino:24:
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h: In function 'String getRTCDateTimeString()':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:30:4: error: 'rtc_date_t' was not declared in this scope
rtc_date_t date_struct;
^~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:30:4: note: suggested alternative: 'rmt_data_t'
rtc_date_t date_struct;
^~~~~~~~~~
rmt_data_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:31:4: error: 'rtc_time_t' was not declared in this scope
rtc_time_t time_struct;
^~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:31:4: note: suggested alternative: 'dhcps_time_t'
rtc_time_t time_struct;
^~~~~~~~~~
dhcps_time_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:33:4: error: 'M5' was not declared in this scope
M5.RTC.getDate(&date_struct);
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:33:4: note: suggested alternative: 'G5'
M5.RTC.getDate(&date_struct);
^~
G5
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:33:20: error: 'date_struct' was not declared in this scope
M5.RTC.getDate(&date_struct);
^~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:33:20: note: suggested alternative: 'uart_struct_t'
M5.RTC.getDate(&date_struct);
^~~~~~~~~~~
uart_struct_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:34:20: error: 'time_struct' was not declared in this scope
M5.RTC.getTime(&time_struct);
^~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:34:20: note: suggested alternative: 'timeNotSet'
M5.RTC.getTime(&time_struct);
^~~~~~~~~~~
timeNotSet
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h: In function 'time_t GetRTCTime()':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:47:3: error: 'rtc_date_t' was not declared in this scope
rtc_date_t date_struct;
^~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:47:3: note: suggested alternative: 'rmt_data_t'
rtc_date_t date_struct;
^~~~~~~~~~
rmt_data_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:48:3: error: 'rtc_time_t' was not declared in this scope
rtc_time_t time_struct;
^~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:48:3: note: suggested alternative: 'dhcps_time_t'
rtc_time_t time_struct;
^~~~~~~~~~
dhcps_time_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:50:3: error: 'M5' was not declared in this scope
M5.RTC.getDate(&date_struct);
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:50:3: note: suggested alternative: 'G5'
M5.RTC.getDate(&date_struct);
^~
G5
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:50:19: error: 'date_struct' was not declared in this scope
M5.RTC.getDate(&date_struct);
^~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:50:19: note: suggested alternative: 'uart_struct_t'
M5.RTC.getDate(&date_struct);
^~~~~~~~~~~
uart_struct_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:51:19: error: 'time_struct' was not declared in this scope
M5.RTC.getTime(&time_struct);
^~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:51:19: note: suggested alternative: 'timeNotSet'
M5.RTC.getTime(&time_struct);
^~~~~~~~~~~
timeNotSet
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h: In function 'String getRTCDateString()':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:67:4: error: 'rtc_date_t' was not declared in this scope
rtc_date_t date_struct;
^~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:67:4: note: suggested alternative: 'rmt_data_t'
rtc_date_t date_struct;
^~~~~~~~~~
rmt_data_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:69:4: error: 'M5' was not declared in this scope
M5.RTC.getDate(&date_struct);
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:69:4: note: suggested alternative: 'G5'
M5.RTC.getDate(&date_struct);
^~
G5
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:69:20: error: 'date_struct' was not declared in this scope
M5.RTC.getDate(&date_struct);
^~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:69:20: note: suggested alternative: 'uart_struct_t'
M5.RTC.getDate(&date_struct);
^~~~~~~~~~~
uart_struct_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h: In function 'String getRTCTimeString()':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:81:4: error: 'rtc_time_t' was not declared in this scope
rtc_time_t time_struct;
^~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:81:4: note: suggested alternative: 'dhcps_time_t'
rtc_time_t time_struct;
^~~~~~~~~~
dhcps_time_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:83:4: error: 'M5' was not declared in this scope
M5.RTC.getTime(&time_struct);
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:83:4: note: suggested alternative: 'G5'
M5.RTC.getTime(&time_struct);
^~
G5
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:83:20: error: 'time_struct' was not declared in this scope
M5.RTC.getTime(&time_struct);
^~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Utils.h:83:20: note: suggested alternative: 'timeNotSet'
M5.RTC.getTime(&time_struct);
^~~~~~~~~~~
timeNotSet
In file included from C:\Users\irate\Desktop\M5PaperWeather-master\weather\weather.ino:25:
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: At global scope:
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:27:1: error: 'M5EPD_Canvas' does not name a type
M5EPD_Canvas canvas(&M5.EPD); // Main canvas of the e-paper
^~~~~~~~~~~~
In file included from C:\Users\irate\Desktop\M5PaperWeather-master\weather\weather.ino:25:
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawCircle(int32_t, int32_t, int32_t, uint32_t, int32_t, int32_t)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:79:7: error: 'canvas' was not declared in this scope
canvas.drawPixel(px, py, color);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawRSSI(int, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:88:50: error: 'M5EPD_Canvas' has not been declared
if (iQuality >= 80) DrawCircle(x + 12, y, 16, M5EPD_Canvas::G15, 225, 315);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:89:50: error: 'M5EPD_Canvas' has not been declared
if (iQuality >= 40) DrawCircle(x + 12, y, 12, M5EPD_Canvas::G15, 225, 315);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:90:50: error: 'M5EPD_Canvas' has not been declared
if (iQuality >= 20) DrawCircle(x + 12, y, 8, M5EPD_Canvas::G15, 225, 315);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:91:50: error: 'M5EPD_Canvas' has not been declared
if (iQuality >= 10) DrawCircle(x + 12, y, 4, M5EPD_Canvas::G15, 225, 315);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:92:29: error: 'M5EPD_Canvas' has not been declared
DrawCircle(x + 12, y, 2, M5EPD_Canvas::G15, 225, 315);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawBattery(int, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:98:4: error: 'canvas' was not declared in this scope
canvas.drawRect(x, y, 40, 16, M5EPD_Canvas::G15);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:98:34: error: 'M5EPD_Canvas' has not been declared
canvas.drawRect(x, y, 40, 16, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:99:42: error: 'M5EPD_Canvas' has not been declared
canvas.drawRect(x + 40, y + 3, 4, 10, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:101:40: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(i, y, i, y + 15, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawHead()':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:111:4: error: 'canvas' was not declared in this scope
canvas.drawString(VERSION, 20, 10);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawIcon(int, int, const uint16_t*, int, int, bool)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:127:42: error: 'canvas' was not declared in this scope
if (15 - (pixel / 4096) > 0) canvas.drawPixel(x + xi, y + yi, M5EPD_Canvas::G15);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:127:75: error: 'M5EPD_Canvas' has not been declared
if (15 - (pixel / 4096) > 0) canvas.drawPixel(x + xi, y + yi, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:129:13: error: 'canvas' was not declared in this scope
canvas.drawPixel(x + xi, y + yi, 15 - (pixel / 4096));
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawSunInfo(int, int, int, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:138:4: error: 'canvas' was not declared in this scope
canvas.setTextSize(3);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:140:47: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(x, y + 35, x + dx, y + 35, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawMoon(int, int, int, int, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:161:4: error: 'canvas' was not declared in this scope
canvas.drawCircle(x + diameter - 1, y + diameter, diameter / 2 + 1, M5EPD_Canvas::G15);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:161:72: error: 'M5EPD_Canvas' has not been declared
canvas.drawCircle(x + diameter - 1, y + diameter, diameter / 2 + 1, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:185:47: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(pW1x, pW1y, pW2x, pW2y, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:186:47: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(pW3x, pW3y, pW4x, pW4y, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:188:68: error: 'M5EPD_Canvas' has not been declared
canvas.drawCircle(x + diameter - 1, y + diameter, diameter / 2, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawMoonInfo(int, int, int, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:194:4: error: 'rtc_date_t' was not declared in this scope
rtc_date_t date_struct;
^~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:194:4: note: suggested alternative: 'rmt_data_t'
rtc_date_t date_struct;
^~~~~~~~~~
rmt_data_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:196:4: error: 'M5' was not declared in this scope
M5.RTC.getDate(&date_struct);
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:196:4: note: suggested alternative: 'G5'
M5.RTC.getDate(&date_struct);
^~
G5
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:196:20: error: 'date_struct' was not declared in this scope
M5.RTC.getDate(&date_struct);
^~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:196:20: note: suggested alternative: 'uart_struct_t'
M5.RTC.getDate(&date_struct);
^~~~~~~~~~~
uart_struct_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:198:4: error: 'canvas' was not declared in this scope
canvas.setTextSize(3);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:200:47: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(x, y + 35, x + dx, y + 35, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::Arrow(int, int, int, float, int, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:232:4: error: 'canvas' was not declared in this scope
canvas.fillTriangle(xx1, yy1, xx3, yy3, xx2, yy2, M5EPD_Canvas::G15);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:232:54: error: 'M5EPD_Canvas' has not been declared
canvas.fillTriangle(xx1, yy1, xx3, yy3, xx2, yy2, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DisplayDisplayWindSection(int, int, float, float, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:245:4: error: 'canvas' was not declared in this scope
canvas.setTextSize(2);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:246:48: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(0, 15, 0, y + cradius + 30, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:247:37: error: 'M5EPD_Canvas' has not been declared
canvas.drawCircle(x, y, cradius, M5EPD_Canvas::G15); // Draw compass circle
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:248:41: error: 'M5EPD_Canvas' has not been declared
canvas.drawCircle(x, y, cradius + 1, M5EPD_Canvas::G15); // Draw compass circle
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:249:43: error: 'M5EPD_Canvas' has not been declared
canvas.drawCircle(x, y, cradius * 0.7, M5EPD_Canvas::G15); // Draw compass inner circle
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:259:59: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(dxo + x, dyo + y, dxi + x, dyi + y, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:264:59: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(dxo + x, dyo + y, dxi + x, dyi + y, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawWindInfo(int, int, int, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:279:4: error: 'canvas' was not declared in this scope
canvas.setTextSize(3);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:281:47: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(x, y + 35, x + dx, y + 35, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawM5PaperInfo(int, int, int, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:289:4: error: 'canvas' was not declared in this scope
canvas.setTextSize(3);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:291:47: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(x, y + 35, x + dx, y + 35, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawHourly(int, int, int, int, Weather&, int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:315:4: error: 'canvas' was not declared in this scope
canvas.setTextSize(2);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::DrawGraph(int, int, int, int, String, int, int, int, int, float*)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:361:4: error: 'canvas' was not declared in this scope
canvas.setTextSize(2);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:370:54: error: 'M5EPD_Canvas' has not been declared
canvas.drawRect(graphX, graphY, graphDX, graphDY, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:380:56: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(xDash, yPos, xDash + 5, yPos, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:392:40: error: 'M5EPD_Canvas' has not been declared
canvas.fillCircle(xPos, yPos, 2, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:394:52: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(iOldX, iOldY, xPos, yPos, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::Show()':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:406:4: error: 'canvas' was not declared in this scope
canvas.createCanvas(960, 540);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:409:24: error: 'WHITE' was not declared in this scope
canvas.setTextColor(WHITE, BLACK);
^~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:409:24: note: suggested alternative: 'FWRITE'
canvas.setTextColor(WHITE, BLACK);
^~~~~
FWRITE
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:409:31: error: 'BLACK' was not declared in this scope
canvas.setTextColor(WHITE, BLACK);
^~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:410:24: error: 'TL_DATUM' was not declared in this scope
canvas.setTextDatum(TL_DATUM);
^~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:417:50: error: 'M5EPD_Canvas' has not been declared
canvas.drawRect(14, 34, maxX - 28, maxY - 43, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:419:44: error: 'M5EPD_Canvas' has not been declared
canvas.drawRect(15, 35, maxX - 30, 251, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:420:39: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(232, 35, 232, 286, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:421:39: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(465, 35, 465, 286, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:422:39: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(697, 35, 697, 286, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:428:45: error: 'M5EPD_Canvas' has not been declared
canvas.drawRect(15, 286, maxX - 30, 122, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:430:39: error: 'M5EPD_Canvas' has not been declared
canvas.drawLine(x, 286, x, 408, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:434:45: error: 'M5EPD_Canvas' has not been declared
canvas.drawRect(15, 408, maxX - 30, 122, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:441:28: error: 'UPDATE_MODE_GC16' was not declared in this scope
canvas.pushCanvas(0, 0, UPDATE_MODE_GC16);
^~~~~~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:441:28: note: suggested alternative: 'MBEDTLS_MODE_GCM'
canvas.pushCanvas(0, 0, UPDATE_MODE_GC16);
^~~~~~~~~~~~~~~~
MBEDTLS_MODE_GCM
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h: In member function 'void WeatherDisplay::ShowM5PaperInfo()':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:450:4: error: 'canvas' was not declared in this scope
canvas.createCanvas(245, 251);
^~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:453:24: error: 'WHITE' was not declared in this scope
canvas.setTextColor(WHITE, BLACK);
^~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:453:24: note: suggested alternative: 'FWRITE'
canvas.setTextColor(WHITE, BLACK);
^~~~~
FWRITE
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:453:31: error: 'BLACK' was not declared in this scope
canvas.setTextColor(WHITE, BLACK);
^~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:454:24: error: 'TL_DATUM' was not declared in this scope
canvas.setTextDatum(TL_DATUM);
^~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:456:36: error: 'M5EPD_Canvas' has not been declared
canvas.drawRect(0, 0, 245, 251, M5EPD_Canvas::G15);
^~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:459:31: error: 'UPDATE_MODE_GC16' was not declared in this scope
canvas.pushCanvas(697, 35, UPDATE_MODE_GC16);
^~~~~~~~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Display.h:459:31: note: suggested alternative: 'MBEDTLS_MODE_GCM'
canvas.pushCanvas(697, 35, UPDATE_MODE_GC16);
^~~~~~~~~~~~~~~~
MBEDTLS_MODE_GCM
In file included from C:\Users\irate\Desktop\M5PaperWeather-master\weather\weather.ino:26:
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Battery.h: In function 'bool GetBatteryValues(MyData&)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Battery.h:31:19: error: 'M5' was not declared in this scope
uint32_t vol = M5.getBatteryVoltage();
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Battery.h:31:19: note: suggested alternative: 'G5'
uint32_t vol = M5.getBatteryVoltage();
^~
G5
In file included from C:\Users\irate\Desktop\M5PaperWeather-master\weather\weather.ino:27:
C:\Users\irate\Desktop\M5PaperWeather-master\weather\EPD.h: In function 'void InitEPD(bool)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\EPD.h:27:4: error: 'M5' was not declared in this scope
M5.begin(false, false, true, true, false);
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\EPD.h:27:4: note: suggested alternative: 'G5'
M5.begin(false, false, true, true, false);
^~
G5
C:\Users\irate\Desktop\M5PaperWeather-master\weather\EPD.h: In function 'void ShutdownEPD(int)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\EPD.h:54:4: error: 'M5' was not declared in this scope
M5.shutdown(sec);
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\EPD.h:54:4: note: suggested alternative: 'G5'
M5.shutdown(sec);
^~
G5
In file included from C:\Users\irate\Desktop\M5PaperWeather-master\weather\weather.ino:30:
C:\Users\irate\Desktop\M5PaperWeather-master\weather\SHT30.h: In function 'bool GetSHT30Values(MyData&)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\SHT30.h:28:4: error: 'M5' was not declared in this scope
M5.SHT30.UpdateData();
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\SHT30.h:28:4: note: suggested alternative: 'G5'
M5.SHT30.UpdateData();
^~
G5
In file included from C:\Users\irate\Desktop\M5PaperWeather-master\weather\weather.ino:31:
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h: In function 'bool SetRTCDateTime(MyData&)':
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h:30:7: error: 'rtc_time_t' was not declared in this scope
rtc_time_t RTCtime;
^~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h:30:7: note: suggested alternative: 'dhcps_time_t'
rtc_time_t RTCtime;
^~~~~~~~~~
dhcps_time_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h:31:7: error: 'rtc_date_t' was not declared in this scope
rtc_date_t RTCDate;
^~~~~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h:31:7: note: suggested alternative: 'rmt_data_t'
rtc_date_t RTCDate;
^~~~~~~~~~
rmt_data_t
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h:35:7: error: 'RTCDate' was not declared in this scope
RTCDate.year = year(time);
^~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h:38:7: error: 'M5' was not declared in this scope
M5.RTC.setDate(&RTCDate);
^~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h:38:7: note: suggested alternative: 'G5'
M5.RTC.setDate(&RTCDate);
^~
G5
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h:40:7: error: 'RTCtime' was not declared in this scope
RTCtime.hour = hour(time);
^~~~~~~
C:\Users\irate\Desktop\M5PaperWeather-master\weather\Time.h:40:7: note: suggested alternative: 'time'
RTCtime.hour = hour(time);
^~~~~~~
time
exit status 1
Compilation error: 'rtc_date_t' was not declared in this scope