Open EtoTen opened 1 year ago
Update Adding: ARDUINO_ADAFRUIT_FEATHER_ESP32S2 manually to the build flags, let it build ok.
I guess that definition is not getting set automatically in PlatformIO for the "featheresp32-s2" maybe it is in Arduino IDE? Where is that define supposed to come from?
build_flags=
-D ARDUINO_SERIAL_PORT=1
-D ARDUINO_USB_CDC_ON_BOOT
-D ARDUINO_ADAFRUIT_FEATHER_ESP32S2
VSCode, PlatformIO (latest)
platformio.ini:
Board definition: https://github.com/platformio/platform-espressif32/blob/master/boards/featheresp32-s2.json "name": "Adafruit ESP32-S2 Feather Development Board"
Compile error:
I am assuming that the define "ARDUINO_ADAFRUIT_FEATHER_ESP32S2" does not get defined in my environment for some reason and thus the check "#elif defined(ESP32) && !defined(ARDUINO_ADAFRUIT_FEATHER_ESP32S2) " Adafruit_FeatherOLED.h:46 still passes and tries to set an invalid pin for the S2