Xinyuan-LilyGO / LilyGo-EPD47

GNU General Public License v3.0
402 stars 120 forks source link

Quick start guide not complete #20

Closed idanov closed 3 years ago

idanov commented 3 years ago

Hello :wave: I have followed the quick start guide, but when I try to upload the demo example, I get EPS IDF errors:

/home/user/snap/arduino/current/Arduino/libraries/LilyGo-EPD47-master/src/i2s_data_bus.c:5:29: fatal error: esp_idf_version.h: No such file or directory
 #include <esp_idf_version.h>
                             ^
compilation terminated.
exit status 1
Error compiling for board ESP32 Dev Module.

I am using Ubuntu 20.04 and installed the Arduino IDE snap (tried with a non-snap installation and the result is the same). Should I install ESP-IDF too and how to get the demo to work with Arduino IDE?

mol21 commented 3 years ago

Hi, I had the same problem on MacOS 11.1 and platformio with VSCode. I just deleted or commented out the #include lines in the code (it is in multiple files) and it compiles and works.

Nyessss commented 3 years ago

Hi, I try this too and it worked. Just delete lines associated with esp_idf_version.h (and if loops) in /src/i2s_data_bus.c & /src/rmt_pulse.c.

idanov commented 3 years ago

I found a workaround by installing the dev version of https://github.com/espressif/arduino-esp32. Nevertheless, the step for installing it is missing from the guide and it's probably worth adding it.

lewisxhe commented 3 years ago

Due to the merged request, using the old version of esp32 core will cause compilation errors