m5stack / M5Stack

M5Stack Arduino Library
MIT License
1.19k stars 424 forks source link

Cannot compile M5stack sample code #240

Closed yutakau closed 3 years ago

yutakau commented 3 years ago

Hi all,

After installing the M5Stack library from scratch, the sample code, "FactoryTest" cannot be compiled due to the following reasons. The 'WiFi' is not declared anywhere.

Yutaka

C:\Users\yutak\Documents\Arduino\libraries\M5Stack\src\M5Display.cpp: In member function 'void M5Display::drawPngUrl(const char*, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, uint16_t, double, uint8_t)':

C:\Users\yutak\Documents\Arduino\libraries\M5Stack\src\M5Display.cpp:545:7: error: 'WiFi' was not declared in this scope

Gitshaoxiang commented 3 years ago

did you install the esp32 board? refer to this tutorial to setting.

https://docs.m5stack.com/#/en/arduino/arduino_development