Skip to content

Commit 591f801

Browse files
authored
Merge pull request #771 from kbsriram/add-dfrobot-beetle-esp32c3
Support for DFRobot Beetle ESP32C3.
2 parents 10c9ef1 + 002cdfd commit 591f801

File tree

6 files changed

+25
-2
lines changed

6 files changed

+25
-2
lines changed

.github/workflows/build-clang-doxy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,14 @@ jobs:
362362
"sparklemotionstick_esp32",
363363
"feather_esp32_v2",
364364
"itsybitsy_esp32",
365+
"dfrobot_beetle_esp32c3",
365366
"wippersnapper_qtpy_esp32c3",
366367
"wippersnapper_feather_esp32c6"
367368
]
368369
include:
369370
- offset: "0x1000"
371+
- offset: "0x0"
372+
arduino-platform: "dfrobot_beetle_esp32c3"
370373
- offset: "0x0"
371374
arduino-platform: "wippersnapper_qtpy_esp32c3"
372375
- offset: "0x0"

examples/Wippersnapper_demo/.dfrobot_beetle_esp32c3.generate

Whitespace-only changes.

examples/wippersnapper_debug/.dfrobot_beetle_esp32c3.test.skip

Whitespace-only changes.

platformio.ini

Lines changed: 12 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,17 @@ 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+
; 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
543+
board_build.filesystem = littlefs
544+
board_build.partitions = min_spiffs.csv
545+
535546

536547
[env:raspberypi_picow]
537548
extends = common:rp2040

src/Wippersnapper_Boards.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@
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_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.
193+
#define BOARD_ID "dfrobot-beetle-esp32c3"
194+
#define USE_LITTLEFS
195+
#define USE_STATUS_LED
196+
#define STATUS_LED_PIN LED_BUILTIN
189197
#elif defined(ARDUINO_SPARKLEMOTIONMINI_ESP32)
190198
#define BOARD_ID "sparklemotionmini-esp32"
191199
#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_ESP32C3_DEV) || \
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)