Skip to content

Commit d8727d7

Browse files
committed
Add Sparkle Motion Stick
1 parent d0463bf commit d8727d7

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ jobs:
285285
"wippersnapper_feather_esp32",
286286
"qtpy_esp32",
287287
"sparklemotionmini_esp32",
288+
"sparklemotionstick_esp32",
288289
"feather_esp32_v2",
289290
"itsybitsy_esp32",
290291
"wippersnapper_qtpy_esp32c3",

platformio.ini

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ lib_deps =
1919
;;;;;;;;;;; FunHouse / LVGL Boards uncomment these ;;;;;;;;;;;;;;
2020
; https://github.com/adafruit/Adafruit_HX8357_Library.git
2121
; https://github.com/adafruit/Adafruit_ILI9341.git
22-
; https://github.com/adafruit/Adafruit_STMPE610.git
22+
; https://github.com/adafruit/Adafruit_STMPE610.git
2323
; https://github.com/adafruit/Adafruit-ST7735-Library.git
2424
; https://github.com/adafruit/Adafruit_TouchScreen.git
2525
; https://github.com/brentru/lvgl.git#wippersnapper
@@ -291,7 +291,7 @@ extra_scripts = pre:rename_usb_config.py
291291
[env:adafruit_funhouse_esp32s2_debug]
292292
extends = common:esp32
293293
board = adafruit_funhouse_esp32s2
294-
;lib_extra_dirs =
294+
;lib_extra_dirs =
295295
build_type = debug
296296
build_flags =
297297
-DARDUINO_FUNHOUSE
@@ -333,6 +333,14 @@ board_build.partitions = min_spiffs.csv
333333
board_build.filesystem = littlefs
334334
build_flags = -DARDUINO_SPARKLEMOTIONMINI_ESP32
335335

336+
; Adafruit Sparkle Motion Stick
337+
[env:adafruit_sparklemotionstick_esp32]
338+
extends = common:esp32
339+
board = adafruit_sparklemotionstick_esp32
340+
board_build.partitions = min_spiffs.csv
341+
board_build.filesystem = littlefs
342+
build_flags = -DARDUINO_SPARKLEMOTIONSTICK_ESP32
343+
336344
; Adafruit QT Py ESP32-C3
337345
[env:adafruit_qtpy_esp32c3]
338346
extends = common:esp32
@@ -506,7 +514,7 @@ extends = common:rp2040
506514

507515
[env:raspberypi_picow_debug_port_only]
508516
extends = common:rp2040
509-
build_flags =
517+
build_flags =
510518
-DUSE_TINYUSB
511519
-DDEBUG_RP2040_PORT=Serial
512520

@@ -558,7 +566,7 @@ platform = https://github.com/maxgerhardt/platform-raspberrypi.git#develop
558566
platform_packages =
559567
framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git
560568
board = rpipico2w
561-
build_flags =
569+
build_flags =
562570
-DWIFICC=CYW43_COUNTRY_UK
563571
-DUSE_TINYUSB
564572
; -DARDUINO_ARCH_RP2040

src/Wippersnapper_Boards.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,12 @@
183183
#define USE_STATUS_NEOPIXEL
184184
#define STATUS_NEOPIXEL_PIN PIN_NEOPIXEL
185185
#define STATUS_NEOPIXEL_NUM 1
186+
#elif defined(ARDUINO_SPARKLEMOTIONSTICK_ESP32)
187+
#define BOARD_ID "sparklemotionstick-esp32"
188+
#define USE_LITTLEFS
189+
#define USE_STATUS_NEOPIXEL
190+
#define STATUS_NEOPIXEL_PIN PIN_NEOPIXEL
191+
#define STATUS_NEOPIXEL_NUM 1
186192
#elif defined(ARDUINO_RASPBERRY_PI_PICO_W)
187193
#define BOARD_ID "rpi-pico-w"
188194
#define USE_TINYUSB

src/provisioning/littlefs/WipperSnapper_LittleFS.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
defined(ARDUINO_ADAFRUIT_FEATHER_ESP32_V2) || \
1919
defined(ARDUINO_ADAFRUIT_QTPY_ESP32_PICO) || \
2020
defined(ARDUINO_SPARKLEMOTIONMINI_ESP32) || \
21+
defined(ARDUINO_SPARKLEMOTIONSTICK_ESP32) || \
2122
defined(ARDUINO_ADAFRUIT_QTPY_ESP32C3) || \
2223
defined(ARDUINO_ADAFRUIT_FEATHER_ESP32C6)
2324
#include "WipperSnapper_LittleFS.h"

0 commit comments

Comments
 (0)