Skip to content

Commit 3cf70d2

Browse files
committed
Add distinct entry for DFRobot C3
1 parent 591f801 commit 3cf70d2

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ jobs:
395395
- uses: actions/checkout@v4
396396
with:
397397
repository: adafruit/ci-arduino
398-
ref: ci-wippersnapper
398+
ref: ci-wippersnapper-boards-local-txt
399399
path: ci
400400
- name: Checkout Board Definitions
401401
uses: actions/checkout@v4
@@ -441,7 +441,7 @@ jobs:
441441
run: |
442442
pip install esptool
443443
- name: build ESP32 platforms
444-
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }} --build_timeout 48000
444+
run: python3 ci/build_platform.py ${{ matrix.arduino-platform }} --build_timeout 48000 --boards-local-txt
445445
- name: Check artifacts
446446
run: |
447447
ls examples/Wippersnapper_demo/build/*

boards.local.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# This is to allow providing extra defines like WS_MY_BOARD_NAME for any boards using generic module board definitions.
2+
# e.g. See if the board.txt already has extra defines anywhere, or only the basic empty board.defines=
3+
# so for example this existing one dfrobot_romeo_esp32s3.menu.PSRAM.enabled.build.defines=-DBOARD_HAS_PSRAM
4+
# then add a replacement entry with the existing plus new -DWS_MY_BOARD_NAME define.
5+
6+
dfrobot_beetle_esp32c3.build.defines=-DWS_DFROBOT_BEETLE_ESP32C3

platformio.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ board = dfrobot_beetle_esp32c3
539539
; Note: this board reuses a generic preprocessor define
540540
; espressif/arduino-esp32@fcd4799c6de6eb5a5a8eba94818adf770238ecc0
541541
; rather than creating one unique to the device.
542-
build_flags = -DARDUINO_ESP32C3_DEV
542+
build_flags = -DARDUINO_ESP32C3_DEV -DWS_DFROBOT_BEETLE_ESP32C3
543543
board_build.filesystem = littlefs
544544
board_build.partitions = min_spiffs.csv
545545

src/Wippersnapper_Boards.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,19 @@
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)
189+
#elif defined(WS_DFROBOT_BEETLE_ESP32C3)
190190
// Note: this board reuses a generic preprocessor define
191191
// espressif/arduino-esp32@fcd4799c6de6eb5a5a8eba94818adf770238ecc0
192192
// rather than creating one unique to the device.
193193
#define BOARD_ID "dfrobot-beetle-esp32c3"
194194
#define USE_LITTLEFS
195195
#define USE_STATUS_LED
196196
#define STATUS_LED_PIN LED_BUILTIN
197+
#elif defined(ARDUINO_ESP32C3_DEV)
198+
#define BOARD_ID "dfrobot-beetle-esp32c3"
199+
#define USE_LITTLEFS
200+
#define USE_STATUS_LED
201+
#define STATUS_LED_PIN LED_BUILTIN
197202
#elif defined(ARDUINO_SPARKLEMOTIONMINI_ESP32)
198203
#define BOARD_ID "sparklemotionmini-esp32"
199204
#define USE_LITTLEFS

0 commit comments

Comments
 (0)