Bastelschlumpf/M5PaperWeather

Cannot be complied

Janaboy opened this issue · 6 comments

Dear @Bastelschlumpf , is there any chance to fix the code?
Unfortunately it cannot be compiled, there are multiple issues.

Thank you in advance.

Hi, compiles without errors - there is no need to fix the code.

it is important to add all libraries mentioned in the code (see below) to the Arduino SDK. Then it will work!
see: https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries

#include <M5EPD.h>
#include "Config.h"
#include "ConfigOverride.h" // Remove this line
#include "Data.h"
#include "Display.h"
#include "Battery.h"
#include "EPD.h"
#include "EPDWifi.h"
#include "Moon.h"
#include "SHT30.h"
#include "Time.h"
#include "Utils.h"
#include "Weather.h"

IMG_20220309_101436 (002)

> Hi, compiles without errors - there is no need to fix the code.

it is important to add all libraries mentioned in the code (see below) to the Arduino SDK. Then it will work! see: https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries

#include <M5EPD.h> #include "Config.h" #include "ConfigOverride.h" // Remove this line #include "Data.h" #include "Display.h" #include "Battery.h" #include "EPD.h" #include "EPDWifi.h" #include "Moon.h" #include "SHT30.h" #include "Time.h" #include "Utils.h" #include "Weather.h"

Okay an update here.
I just installed the m5edp 1.0.3 library and was able to finally compile.

The code fails with the comment "MyData not declared in this scope"