I have an M5Stack Paper (“EPD”) device. WIth the arduino IDE, I can get helloworld working.
It’s not working with vscode/PIO.
I think there may be a configuration error with the suggested settings. I have the latest libraries
I am a new user, I know nothing. I don’t even know where to report the poor experience, I guessed here as a start.
To start a new project, I am choosing M5Stack Core ESP32.
I have these libraries installed via the PIO library manager
(I also have ArduinoJson installed)
I get this platform.ini
[env:m5stack-core-esp32] platform = espressif32 board = m5stack-core-esp32 framework = arduino
the project builds, flashes and the device restarts, but the result is a blank screen. The same code work s in ArduinoIDE.
However, in this official-looking github repo GitHub - m5stack/M5Paper_FactoryTest
the platform.ini looks very different, including a different board. I don’t know what m5stack-fire is and I don’t recall seeing it in the getting started documentation.
[env:m5stack-fire] platform = espressif32 board = m5stack-fire framework = arduino upload_speed = 2000000 monitor_speed = 115200 board_build.partitions = default_16MB.csv build_flags = -DCORE_DEBUG_LEVEL=4 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue lib_deps = m5stack/M5EPD
Even more weird, when I make a new project in PIO specifying board m5stack-fire, I get this:
[env:m5stack-core-esp32] platform = espressif32 board = m5stack-filter framework = arduino build_flags = lib_deps = m5stack/M5EPD@^0.1.3 m5stack/M5Stack@^0.4.0 bblanchon/ArduinoJson@^6.19.4
on compilation, this leads to “Error: Unknown board ID ‘m5stack-filter’”
So at this point, I resort to guessing.
[env:m5stack-core-esp32] platform = espressif32 board = m5stack-fire framework = arduino build_flags = lib_deps = m5stack/M5EPD@^0.1.3 m5stack/M5Stack@^0.4.0 bblanchon/ArduinoJson@^6.19.4