Skip to content

Commit 158c7ae

Browse files
authored
Add new board: Sparkle Motion Stick (#11330)
* add new version of sparklemotion * updated change as requested * fix * fix clang complaints
1 parent 543fad2 commit 158c7ae

File tree

2 files changed

+174
-0
lines changed

2 files changed

+174
-0
lines changed

boards.txt

+134
Original file line numberDiff line numberDiff line change
@@ -17353,6 +17353,140 @@ sparklemotionmini.menu.ZigbeeMode.zczr=Zigbee ZCZR (coordinator/router)
1735317353
sparklemotionmini.menu.ZigbeeMode.zczr.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
1735417354
sparklemotionmini.menu.ZigbeeMode.zczr.build.zigbee_libs=-lesp_zb_api.zczr -lzboss_stack.zczr -lzboss_port.remote
1735517355

17356+
##############################################################
17357+
# Adafruit Sparkle Motion Stick w/ESP32
17358+
17359+
sparklemotionstick.name=Adafruit Sparkle Motion Stick (ESP32)
17360+
17361+
sparklemotionstick.bootloader.tool=esptool_py
17362+
sparklemotionstick.bootloader.tool.default=esptool_py
17363+
17364+
sparklemotionstick.upload.tool=esptool_py
17365+
sparklemotionstick.upload.tool.default=esptool_py
17366+
sparklemotionstick.upload.tool.network=esp_ota
17367+
17368+
sparklemotionstick.upload.maximum_size=1310720
17369+
sparklemotionstick.upload.maximum_data_size=327680
17370+
sparklemotionstick.upload.flags=
17371+
sparklemotionstick.upload.extra_flags=
17372+
17373+
sparklemotionstick.serial.disableDTR=true
17374+
sparklemotionstick.serial.disableRTS=true
17375+
17376+
sparklemotionstick.build.tarch=xtensa
17377+
sparklemotionstick.build.bootloader_addr=0x1000
17378+
sparklemotionstick.build.target=esp32
17379+
sparklemotionstick.build.mcu=esp32
17380+
sparklemotionstick.build.core=esp32
17381+
sparklemotionstick.build.variant=adafruit_sparklemotionstick_esp32
17382+
sparklemotionstick.build.board=SPARKLEMOTIONSTICK_ESP32
17383+
17384+
sparklemotionstick.build.f_cpu=240000000L
17385+
sparklemotionstick.build.flash_size=4MB
17386+
sparklemotionstick.build.flash_freq=80m
17387+
sparklemotionstick.build.flash_mode=dio
17388+
sparklemotionstick.build.boot=dio
17389+
sparklemotionstick.build.partitions=default
17390+
sparklemotionstick.build.defines=
17391+
sparklemotionstick.build.loop_core=
17392+
sparklemotionstick.build.event_core=
17393+
17394+
sparklemotionstick.menu.LoopCore.1=Core 1
17395+
sparklemotionstick.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
17396+
sparklemotionstick.menu.LoopCore.0=Core 0
17397+
sparklemotionstick.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
17398+
17399+
sparklemotionstick.menu.EventsCore.1=Core 1
17400+
sparklemotionstick.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
17401+
sparklemotionstick.menu.EventsCore.0=Core 0
17402+
sparklemotionstick.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
17403+
17404+
sparklemotionstick.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
17405+
sparklemotionstick.menu.PartitionScheme.default.build.partitions=default
17406+
sparklemotionstick.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
17407+
sparklemotionstick.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
17408+
sparklemotionstick.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
17409+
sparklemotionstick.menu.PartitionScheme.minimal.build.partitions=minimal
17410+
sparklemotionstick.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
17411+
sparklemotionstick.menu.PartitionScheme.no_ota.build.partitions=no_ota
17412+
sparklemotionstick.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
17413+
sparklemotionstick.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
17414+
sparklemotionstick.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
17415+
sparklemotionstick.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
17416+
sparklemotionstick.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
17417+
sparklemotionstick.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
17418+
sparklemotionstick.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
17419+
sparklemotionstick.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
17420+
sparklemotionstick.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
17421+
sparklemotionstick.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
17422+
sparklemotionstick.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
17423+
sparklemotionstick.menu.PartitionScheme.huge_app.build.partitions=huge_app
17424+
sparklemotionstick.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
17425+
sparklemotionstick.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
17426+
sparklemotionstick.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
17427+
sparklemotionstick.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
17428+
17429+
sparklemotionstick.menu.CPUFreq.240=240MHz (WiFi/BT)
17430+
sparklemotionstick.menu.CPUFreq.240.build.f_cpu=240000000L
17431+
sparklemotionstick.menu.CPUFreq.160=160MHz (WiFi/BT)
17432+
sparklemotionstick.menu.CPUFreq.160.build.f_cpu=160000000L
17433+
sparklemotionstick.menu.CPUFreq.80=80MHz (WiFi/BT)
17434+
sparklemotionstick.menu.CPUFreq.80.build.f_cpu=80000000L
17435+
sparklemotionstick.menu.CPUFreq.40=40MHz
17436+
sparklemotionstick.menu.CPUFreq.40.build.f_cpu=40000000L
17437+
sparklemotionstick.menu.CPUFreq.20=20MHz
17438+
sparklemotionstick.menu.CPUFreq.20.build.f_cpu=20000000L
17439+
sparklemotionstick.menu.CPUFreq.10=10MHz
17440+
sparklemotionstick.menu.CPUFreq.10.build.f_cpu=10000000L
17441+
17442+
sparklemotionstick.menu.FlashFreq.80=80MHz
17443+
sparklemotionstick.menu.FlashFreq.80.build.flash_freq=80m
17444+
sparklemotionstick.menu.FlashFreq.40=40MHz
17445+
sparklemotionstick.menu.FlashFreq.40.build.flash_freq=40m
17446+
17447+
sparklemotionstick.menu.FlashSize.4M=4MB (32Mb)
17448+
sparklemotionstick.menu.FlashSize.4M.build.flash_size=4MB
17449+
17450+
sparklemotionstick.menu.UploadSpeed.921600=921600
17451+
sparklemotionstick.menu.UploadSpeed.921600.upload.speed=921600
17452+
sparklemotionstick.menu.UploadSpeed.115200=115200
17453+
sparklemotionstick.menu.UploadSpeed.115200.upload.speed=115200
17454+
sparklemotionstick.menu.UploadSpeed.256000.windows=256000
17455+
sparklemotionstick.menu.UploadSpeed.256000.upload.speed=256000
17456+
sparklemotionstick.menu.UploadSpeed.230400.windows.upload.speed=256000
17457+
sparklemotionstick.menu.UploadSpeed.230400=230400
17458+
sparklemotionstick.menu.UploadSpeed.230400.upload.speed=230400
17459+
sparklemotionstick.menu.UploadSpeed.460800.linux=460800
17460+
sparklemotionstick.menu.UploadSpeed.460800.macosx=460800
17461+
sparklemotionstick.menu.UploadSpeed.460800.upload.speed=460800
17462+
sparklemotionstick.menu.UploadSpeed.512000.windows=512000
17463+
sparklemotionstick.menu.UploadSpeed.512000.upload.speed=512000
17464+
17465+
sparklemotionstick.menu.DebugLevel.none=None
17466+
sparklemotionstick.menu.DebugLevel.none.build.code_debug=0
17467+
sparklemotionstick.menu.DebugLevel.error=Error
17468+
sparklemotionstick.menu.DebugLevel.error.build.code_debug=1
17469+
sparklemotionstick.menu.DebugLevel.warn=Warn
17470+
sparklemotionstick.menu.DebugLevel.warn.build.code_debug=2
17471+
sparklemotionstick.menu.DebugLevel.info=Info
17472+
sparklemotionstick.menu.DebugLevel.info.build.code_debug=3
17473+
sparklemotionstick.menu.DebugLevel.debug=Debug
17474+
sparklemotionstick.menu.DebugLevel.debug.build.code_debug=4
17475+
sparklemotionstick.menu.DebugLevel.verbose=Verbose
17476+
sparklemotionstick.menu.DebugLevel.verbose.build.code_debug=5
17477+
17478+
sparklemotionstick.menu.EraseFlash.none=Disabled
17479+
sparklemotionstick.menu.EraseFlash.none.upload.erase_cmd=
17480+
sparklemotionstick.menu.EraseFlash.all=Enabled
17481+
sparklemotionstick.menu.EraseFlash.all.upload.erase_cmd=-e
17482+
17483+
sparklemotionstick.menu.ZigbeeMode.default=Disabled
17484+
sparklemotionstick.menu.ZigbeeMode.default.build.zigbee_mode=
17485+
sparklemotionstick.menu.ZigbeeMode.default.build.zigbee_libs=
17486+
sparklemotionstick.menu.ZigbeeMode.zczr=Zigbee ZCZR (coordinator/router)
17487+
sparklemotionstick.menu.ZigbeeMode.zczr.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
17488+
sparklemotionstick.menu.ZigbeeMode.zczr.build.zigbee_libs=-lesp_zb_api.zczr -lzboss_stack.zczr -lzboss_port.remote
17489+
1735617490
##############################################################
1735717491

1735817492
nodemcu-32s.name=NodeMCU-32S
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#ifndef Pins_Arduino_h
2+
#define Pins_Arduino_h
3+
4+
#include <stdint.h>
5+
#include "soc/soc_caps.h"
6+
7+
// User LED
8+
static const uint8_t LED_BUILTIN = 4;
9+
#define BUILTIN_LED LED_BUILTIN // backward compatibility
10+
#define LED_BUILTIN LED_BUILTIN // allow testing #ifdef LED_BUILTIN
11+
12+
// Neopixel
13+
static const uint8_t PIN_NEOPIXEL = 18;
14+
// RGB_BUILTIN and RGB_BRIGHTNESS can be used in new Arduino API rgbLedWrite() and digitalWrite() for blinking
15+
#define RGB_BUILTIN (PIN_NEOPIXEL + SOC_GPIO_PIN_COUNT)
16+
#define RGB_BRIGHTNESS 64
17+
18+
static const uint8_t TX = 25; // not broken out, defined to fix compilation
19+
static const uint8_t RX = 26; // not broken out, defined to fix compilation
20+
21+
#define TX1 TX
22+
#define RX1 RX
23+
24+
static const uint8_t SDA = 13; // not broken out, defined to fix compilation
25+
static const uint8_t SCL = 15; // not broken out, defined to fix compilation
26+
27+
static const uint8_t SS = 19; // not broken out, defined to fix compilation
28+
static const uint8_t MOSI = 21; // output to drive dotstars
29+
static const uint8_t SCK = 22; // output to drive dotstars
30+
static const uint8_t MISO = 23; // not broken out, defined to fix compilation
31+
32+
static const uint8_t A0 = 2; // not broken out, defined to fix compilation
33+
34+
// internal switch
35+
static const uint8_t BUTTON = 0;
36+
37+
static const uint8_t DAC1 = 25; // not broken out, defined to fix compilation
38+
static const uint8_t DAC2 = 26; // not broken out, defined to fix compilation
39+
40+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)