Skip to content

Commit 2091034

Browse files
committed
Support for DFRobot Beetle ESP32C3.
See adafruit/Wippersnapper_Boards#195
1 parent b637366 commit 2091034

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

platformio.ini

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
; PlatformIO Defaults
77
[platformio]
88
description = "Adafruit.IO WipperSnapper Firmware"
9-
default_envs = adafruit_feather_esp32s3_tft, adafruit_magtag29_esp32s2, adafruit_feather_esp32s3, featheresp32s2, adafruit_feather_esp32s2_reversetft, adafruit_metro_esp32s2, adafruit_qtpy_esp32s2, adafruit_feather_esp32s3_reversetft, adafruit_feather_esp32s3_nopsram, adafruit_feather_esp32s2_tft, adafruit_qtpy_esp32, adafruit_qtpy_esp32c3, featheresp32, adafruit_qtpy_esp32s3_nopsram, featheresp32v2, huzzah, adafruit_pyportal_m4, adafruit_pyportal_m4_titano
9+
default_envs = adafruit_feather_esp32s3_tft, adafruit_magtag29_esp32s2, adafruit_feather_esp32s3, featheresp32s2, adafruit_feather_esp32s2_reversetft, adafruit_metro_esp32s2, adafruit_qtpy_esp32s2, adafruit_feather_esp32s3_reversetft, adafruit_feather_esp32s3_nopsram, adafruit_feather_esp32s2_tft, adafruit_qtpy_esp32, adafruit_qtpy_esp32c3, featheresp32, adafruit_qtpy_esp32s3_nopsram, featheresp32v2, huzzah, adafruit_pyportal_m4, adafruit_pyportal_m4_titano, dfrobot_beetle_esp32c3
1010

1111

1212
; Common Build Environment
@@ -532,6 +532,14 @@ build_flags = -DUSE_TINYUSB
532532
; extra_scripts = pre:rename_usb_config.py
533533
upload_port = /dev/cu.usbmodem1201
534534

535+
; DFRobot Beetle ESP32-C3
536+
[env:dfrobot_beetle_esp32c3]
537+
extends = common:esp32
538+
board = dfrobot_beetle_esp32c3
539+
build_flags = -DARDUINO_DFROBOT_BEETLE_ESP32C3
540+
board_build.filesystem = littlefs
541+
board_build.partitions = min_spiffs.csv
542+
535543

536544
[env:raspberypi_picow]
537545
extends = common:rp2040

src/Wippersnapper_Boards.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@
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)
190+
#define BOARD_ID "dfrobot-beetle-esp32c3"
191+
#define USE_LITTLEFS
192+
#define USE_STATUS_LED
193+
#define STATUS_LED_PIN LED_BUILTIN
189194
#elif defined(ARDUINO_SPARKLEMOTIONMINI_ESP32)
190195
#define BOARD_ID "sparklemotionmini-esp32"
191196
#define USE_LITTLEFS

src/provisioning/littlefs/WipperSnapper_LittleFS.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +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) || \
2021
defined(ARDUINO_SPARKLEMOTIONMINI_ESP32) || \
2122
defined(ARDUINO_SPARKLEMOTIONSTICK_ESP32) || \
2223
defined(ARDUINO_ADAFRUIT_QTPY_ESP32C3) || \
@@ -170,4 +171,4 @@ void WipperSnapper_LittleFS::fsHalt(String msg) {
170171
}
171172
}
172173

173-
#endif
174+
#endif

0 commit comments

Comments
 (0)