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-ESP32
as 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