How to test we compile a M5Stack ?
-
On a source file, we have to test if we compile an M5Stack or ESP32LoRa or a ESP8266. Is there a specific variable to test like :
#ifdef ESP8266I know that we can test ESP32 but it's not enought to define the difference berween a ESP32 and a M5Stack...
-
Hi, will these work for you ? They are specifically used in code for the M5Stack.
#include <M5Stack.h>
M5.begin(); -
try:
#ifdef ARDUINO_M5Stack-Core-ESP32as is declared in arduino boards:
https://github.com/espressif/arduino-esp32/blob/master/boards.txt#L1169
but this is temporary solution because hyphens are not valid for arduino.We waiting for some changes...
"issue" is added: https://github.com/m5stack/M5Stack/issues/41
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