VSCode + Platform IO M5 Paper (EPD) board type
-
There is no forum for VSCode + PIO yet it is heavily used. Many of the M5 github examples obviously use it (at least for the Paper). So I post this here, despite it not being an Arduino IDE question.
In those github examples, the platformio.ini has this content (partial extract)
from https://github.com/m5stack/M5EPD_Calculator[env:m5stack-fire]
platform = espressif32
board = m5stack-fireThis project builds and runs fine.
But I am surprised at the board used. In Arduino IDE, there is a specific M5Stack board for the Paper.In following up with the PlatformIO community support forum, I got very helpful support from someone, who said this:
"I see, indeed. You鈥檙e using the board package as instructed from m5-docs, which is using the Arduino core https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/m5stack-2.0.3.zip. PlatformIO only supports the official Arduino-ESP32, which does not have the M5Stack-Paper (but other M5Stack boards), see here. Seems like the M5Stack people just fork the Arduino-ESP32 core, add their own boards, and don鈥檛 merge immediately back, leaving regular core users in the dark."
but this user then discovered: "However, looking at the core download, it nicely has a package.json, so it can be used in PlatformIO, given the right board definition (already created in Create m5stack-paper.json by TomG736 路 Pull Request #669 路 platformio/platform-espressif32 路 GitHub)."
I wondered about the consequence of using
board = m5stack-fire
his reply was: "Board board = .. selection influences a great number of things, that is, ESP32 type, flash size and the Arduino variant e.g. The m5stack_fire and and m5stack_paper variant folders each have their pins_arduino.h in them, and they might have different things (e.g., default pins for attached devices or SPI bus etc.) in them, leading to incompatibilities later."
So, is using
board = m5stack-fire
with VSCode/PIO ok?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 馃挆
Register Login