Skip to content

Commit 002cdfd

Browse files
committed
Update preprocessor defines for arduino builds.
1 parent 0489a41 commit 002cdfd

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

platformio.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,10 @@ upload_port = /dev/cu.usbmodem1201
536536
[env:dfrobot_beetle_esp32c3]
537537
extends = common:esp32
538538
board = dfrobot_beetle_esp32c3
539-
build_flags = -DARDUINO_DFROBOT_BEETLE_ESP32C3
539+
; Note: this board reuses a generic preprocessor define
540+
; espressif/arduino-esp32@fcd4799c6de6eb5a5a8eba94818adf770238ecc0
541+
; rather than creating one unique to the device.
542+
build_flags = -DARDUINO_ESP32C3_DEV
540543
board_build.filesystem = littlefs
541544
board_build.partitions = min_spiffs.csv
542545

src/Wippersnapper_Boards.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@
186186
#define STATUS_NEOPIXEL_PIN PIN_NEOPIXEL
187187
#define STATUS_NEOPIXEL_NUM 1
188188
#define USE_PSRAM ///< Board has PSRAM, use it for dynamic memory allocation
189-
#elif defined(ARDUINO_DFROBOT_BEETLE_ESP32C3)
189+
#elif defined(ARDUINO_ESP32C3_DEV)
190+
// Note: this board reuses a generic preprocessor define
191+
// espressif/arduino-esp32@fcd4799c6de6eb5a5a8eba94818adf770238ecc0
192+
// rather than creating one unique to the device.
190193
#define BOARD_ID "dfrobot-beetle-esp32c3"
191194
#define USE_LITTLEFS
192195
#define USE_STATUS_LED

src/provisioning/littlefs/WipperSnapper_LittleFS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
defined(ARDUINO_ADAFRUIT_ITSYBITSY_ESP32) || \
1818
defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2) || \
1919
defined(ARDUINO_ADAFRUIT_QTPY_ESP32_PICO) || \
20-
defined(ARDUINO_DFROBOT_BEETLE_ESP32C3) || \
20+
defined(ARDUINO_ESP32C3_DEV) || \
2121
defined(ARDUINO_SPARKLEMOTIONMINI_ESP32) || \
2222
defined(ARDUINO_SPARKLEMOTIONSTICK_ESP32) || \
2323
defined(ARDUINO_ADAFRUIT_QTPY_ESP32C3) || \

0 commit comments

Comments
 (0)