Skip to content

Commit efb3393

Browse files
authored
Add two more Adafruit Boards (Sparkle Motion & Sparkle Motion mini) (#10809)
* add sparkle motion board (w/esp32 mini module) * add mini version!
1 parent 30b97d1 commit efb3393

File tree

3 files changed

+352
-0
lines changed

3 files changed

+352
-0
lines changed

boards.txt

+268
Original file line numberDiff line numberDiff line change
@@ -16900,6 +16900,274 @@ adafruit_qualia_s3_rgb666.menu.ZigbeeMode.zczr=Zigbee ZCZR (coordinator/router)
1690016900
adafruit_qualia_s3_rgb666.menu.ZigbeeMode.zczr.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
1690116901
adafruit_qualia_s3_rgb666.menu.ZigbeeMode.zczr.build.zigbee_libs=-lesp_zb_api_zczr -lesp_zb_cli_command -lzboss_stack.zczr -lzboss_port
1690216902

16903+
##############################################################
16904+
# Adafruit Sparkle Motion w/ESP32
16905+
16906+
sparklemotion.name=Adafruit Sparkle Motion (ESP32)
16907+
16908+
sparklemotion.bootloader.tool=esptool_py
16909+
sparklemotion.bootloader.tool.default=esptool_py
16910+
16911+
sparklemotion.upload.tool=esptool_py
16912+
sparklemotion.upload.tool.default=esptool_py
16913+
sparklemotion.upload.tool.network=esp_ota
16914+
16915+
sparklemotion.upload.maximum_size=1310720
16916+
sparklemotion.upload.maximum_data_size=327680
16917+
sparklemotion.upload.flags=
16918+
sparklemotion.upload.extra_flags=
16919+
16920+
sparklemotion.serial.disableDTR=true
16921+
sparklemotion.serial.disableRTS=true
16922+
16923+
sparklemotion.build.tarch=xtensa
16924+
sparklemotion.build.bootloader_addr=0x1000
16925+
sparklemotion.build.target=esp32
16926+
sparklemotion.build.mcu=esp32
16927+
sparklemotion.build.core=esp32
16928+
sparklemotion.build.variant=adafruit_sparklemotion_esp32
16929+
sparklemotion.build.board=SPARKLEMOTION_ESP32
16930+
16931+
sparklemotion.build.f_cpu=240000000L
16932+
sparklemotion.build.flash_size=4MB
16933+
sparklemotion.build.flash_freq=80m
16934+
sparklemotion.build.flash_mode=dio
16935+
sparklemotion.build.boot=dio
16936+
sparklemotion.build.partitions=default
16937+
sparklemotion.build.defines=
16938+
sparklemotion.build.loop_core=
16939+
sparklemotion.build.event_core=
16940+
16941+
sparklemotion.menu.LoopCore.1=Core 1
16942+
sparklemotion.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
16943+
sparklemotion.menu.LoopCore.0=Core 0
16944+
sparklemotion.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
16945+
16946+
sparklemotion.menu.EventsCore.1=Core 1
16947+
sparklemotion.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
16948+
sparklemotion.menu.EventsCore.0=Core 0
16949+
sparklemotion.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
16950+
16951+
sparklemotion.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
16952+
sparklemotion.menu.PartitionScheme.default.build.partitions=default
16953+
sparklemotion.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
16954+
sparklemotion.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
16955+
sparklemotion.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
16956+
sparklemotion.menu.PartitionScheme.minimal.build.partitions=minimal
16957+
sparklemotion.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
16958+
sparklemotion.menu.PartitionScheme.no_ota.build.partitions=no_ota
16959+
sparklemotion.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
16960+
sparklemotion.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
16961+
sparklemotion.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
16962+
sparklemotion.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
16963+
sparklemotion.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
16964+
sparklemotion.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
16965+
sparklemotion.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
16966+
sparklemotion.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
16967+
sparklemotion.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
16968+
sparklemotion.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
16969+
sparklemotion.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
16970+
sparklemotion.menu.PartitionScheme.huge_app.build.partitions=huge_app
16971+
sparklemotion.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
16972+
sparklemotion.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
16973+
sparklemotion.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
16974+
sparklemotion.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
16975+
16976+
sparklemotion.menu.CPUFreq.240=240MHz (WiFi/BT)
16977+
sparklemotion.menu.CPUFreq.240.build.f_cpu=240000000L
16978+
sparklemotion.menu.CPUFreq.160=160MHz (WiFi/BT)
16979+
sparklemotion.menu.CPUFreq.160.build.f_cpu=160000000L
16980+
sparklemotion.menu.CPUFreq.80=80MHz (WiFi/BT)
16981+
sparklemotion.menu.CPUFreq.80.build.f_cpu=80000000L
16982+
sparklemotion.menu.CPUFreq.40=40MHz
16983+
sparklemotion.menu.CPUFreq.40.build.f_cpu=40000000L
16984+
sparklemotion.menu.CPUFreq.20=20MHz
16985+
sparklemotion.menu.CPUFreq.20.build.f_cpu=20000000L
16986+
sparklemotion.menu.CPUFreq.10=10MHz
16987+
sparklemotion.menu.CPUFreq.10.build.f_cpu=10000000L
16988+
16989+
sparklemotion.menu.FlashFreq.80=80MHz
16990+
sparklemotion.menu.FlashFreq.80.build.flash_freq=80m
16991+
sparklemotion.menu.FlashFreq.40=40MHz
16992+
sparklemotion.menu.FlashFreq.40.build.flash_freq=40m
16993+
16994+
sparklemotion.menu.FlashSize.4M=4MB (32Mb)
16995+
sparklemotion.menu.FlashSize.4M.build.flash_size=4MB
16996+
16997+
sparklemotion.menu.UploadSpeed.921600=921600
16998+
sparklemotion.menu.UploadSpeed.921600.upload.speed=921600
16999+
sparklemotion.menu.UploadSpeed.115200=115200
17000+
sparklemotion.menu.UploadSpeed.115200.upload.speed=115200
17001+
sparklemotion.menu.UploadSpeed.256000.windows=256000
17002+
sparklemotion.menu.UploadSpeed.256000.upload.speed=256000
17003+
sparklemotion.menu.UploadSpeed.230400.windows.upload.speed=256000
17004+
sparklemotion.menu.UploadSpeed.230400=230400
17005+
sparklemotion.menu.UploadSpeed.230400.upload.speed=230400
17006+
sparklemotion.menu.UploadSpeed.460800.linux=460800
17007+
sparklemotion.menu.UploadSpeed.460800.macosx=460800
17008+
sparklemotion.menu.UploadSpeed.460800.upload.speed=460800
17009+
sparklemotion.menu.UploadSpeed.512000.windows=512000
17010+
sparklemotion.menu.UploadSpeed.512000.upload.speed=512000
17011+
17012+
sparklemotion.menu.DebugLevel.none=None
17013+
sparklemotion.menu.DebugLevel.none.build.code_debug=0
17014+
sparklemotion.menu.DebugLevel.error=Error
17015+
sparklemotion.menu.DebugLevel.error.build.code_debug=1
17016+
sparklemotion.menu.DebugLevel.warn=Warn
17017+
sparklemotion.menu.DebugLevel.warn.build.code_debug=2
17018+
sparklemotion.menu.DebugLevel.info=Info
17019+
sparklemotion.menu.DebugLevel.info.build.code_debug=3
17020+
sparklemotion.menu.DebugLevel.debug=Debug
17021+
sparklemotion.menu.DebugLevel.debug.build.code_debug=4
17022+
sparklemotion.menu.DebugLevel.verbose=Verbose
17023+
sparklemotion.menu.DebugLevel.verbose.build.code_debug=5
17024+
17025+
sparklemotion.menu.EraseFlash.none=Disabled
17026+
sparklemotion.menu.EraseFlash.none.upload.erase_cmd=
17027+
sparklemotion.menu.EraseFlash.all=Enabled
17028+
sparklemotion.menu.EraseFlash.all.upload.erase_cmd=-e
17029+
17030+
sparklemotion.menu.ZigbeeMode.default=Disabled
17031+
sparklemotion.menu.ZigbeeMode.default.build.zigbee_mode=
17032+
sparklemotion.menu.ZigbeeMode.default.build.zigbee_libs=
17033+
sparklemotion.menu.ZigbeeMode.zczr=Zigbee ZCZR (coordinator/router)
17034+
sparklemotion.menu.ZigbeeMode.zczr.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
17035+
sparklemotion.menu.ZigbeeMode.zczr.build.zigbee_libs=-lesp_zb_api_zczr -lesp_zb_cli_command -lzboss_stack.zczr -lzboss_port
17036+
17037+
##############################################################
17038+
# Adafruit Sparkle Motion Mini w/ESP32
17039+
17040+
sparklemotionmini.name=Adafruit Sparkle Motion Mini (ESP32)
17041+
17042+
sparklemotionmini.bootloader.tool=esptool_py
17043+
sparklemotionmini.bootloader.tool.default=esptool_py
17044+
17045+
sparklemotionmini.upload.tool=esptool_py
17046+
sparklemotionmini.upload.tool.default=esptool_py
17047+
sparklemotionmini.upload.tool.network=esp_ota
17048+
17049+
sparklemotionmini.upload.maximum_size=1310720
17050+
sparklemotionmini.upload.maximum_data_size=327680
17051+
sparklemotionmini.upload.flags=
17052+
sparklemotionmini.upload.extra_flags=
17053+
17054+
sparklemotionmini.serial.disableDTR=true
17055+
sparklemotionmini.serial.disableRTS=true
17056+
17057+
sparklemotionmini.build.tarch=xtensa
17058+
sparklemotionmini.build.bootloader_addr=0x1000
17059+
sparklemotionmini.build.target=esp32
17060+
sparklemotionmini.build.mcu=esp32
17061+
sparklemotionmini.build.core=esp32
17062+
sparklemotionmini.build.variant=adafruit_sparklemotionmini_esp32
17063+
sparklemotionmini.build.board=SPARKLEMOTIONMINI_ESP32
17064+
17065+
sparklemotionmini.build.f_cpu=240000000L
17066+
sparklemotionmini.build.flash_size=4MB
17067+
sparklemotionmini.build.flash_freq=80m
17068+
sparklemotionmini.build.flash_mode=dio
17069+
sparklemotionmini.build.boot=dio
17070+
sparklemotionmini.build.partitions=default
17071+
sparklemotionmini.build.defines=
17072+
sparklemotionmini.build.loop_core=
17073+
sparklemotionmini.build.event_core=
17074+
17075+
sparklemotionmini.menu.LoopCore.1=Core 1
17076+
sparklemotionmini.menu.LoopCore.1.build.loop_core=-DARDUINO_RUNNING_CORE=1
17077+
sparklemotionmini.menu.LoopCore.0=Core 0
17078+
sparklemotionmini.menu.LoopCore.0.build.loop_core=-DARDUINO_RUNNING_CORE=0
17079+
17080+
sparklemotionmini.menu.EventsCore.1=Core 1
17081+
sparklemotionmini.menu.EventsCore.1.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=1
17082+
sparklemotionmini.menu.EventsCore.0=Core 0
17083+
sparklemotionmini.menu.EventsCore.0.build.event_core=-DARDUINO_EVENT_RUNNING_CORE=0
17084+
17085+
sparklemotionmini.menu.PartitionScheme.default=Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS)
17086+
sparklemotionmini.menu.PartitionScheme.default.build.partitions=default
17087+
sparklemotionmini.menu.PartitionScheme.defaultffat=Default 4MB with ffat (1.2MB APP/1.5MB FATFS)
17088+
sparklemotionmini.menu.PartitionScheme.defaultffat.build.partitions=default_ffat
17089+
sparklemotionmini.menu.PartitionScheme.minimal=Minimal (1.3MB APP/700KB SPIFFS)
17090+
sparklemotionmini.menu.PartitionScheme.minimal.build.partitions=minimal
17091+
sparklemotionmini.menu.PartitionScheme.no_ota=No OTA (2MB APP/2MB SPIFFS)
17092+
sparklemotionmini.menu.PartitionScheme.no_ota.build.partitions=no_ota
17093+
sparklemotionmini.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
17094+
sparklemotionmini.menu.PartitionScheme.noota_3g=No OTA (1MB APP/3MB SPIFFS)
17095+
sparklemotionmini.menu.PartitionScheme.noota_3g.build.partitions=noota_3g
17096+
sparklemotionmini.menu.PartitionScheme.noota_3g.upload.maximum_size=1048576
17097+
sparklemotionmini.menu.PartitionScheme.noota_ffat=No OTA (2MB APP/2MB FATFS)
17098+
sparklemotionmini.menu.PartitionScheme.noota_ffat.build.partitions=noota_ffat
17099+
sparklemotionmini.menu.PartitionScheme.noota_ffat.upload.maximum_size=2097152
17100+
sparklemotionmini.menu.PartitionScheme.noota_3gffat=No OTA (1MB APP/3MB FATFS)
17101+
sparklemotionmini.menu.PartitionScheme.noota_3gffat.build.partitions=noota_3gffat
17102+
sparklemotionmini.menu.PartitionScheme.noota_3gffat.upload.maximum_size=1048576
17103+
sparklemotionmini.menu.PartitionScheme.huge_app=Huge APP (3MB No OTA/1MB SPIFFS)
17104+
sparklemotionmini.menu.PartitionScheme.huge_app.build.partitions=huge_app
17105+
sparklemotionmini.menu.PartitionScheme.huge_app.upload.maximum_size=3145728
17106+
sparklemotionmini.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS)
17107+
sparklemotionmini.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
17108+
sparklemotionmini.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080
17109+
17110+
sparklemotionmini.menu.CPUFreq.240=240MHz (WiFi/BT)
17111+
sparklemotionmini.menu.CPUFreq.240.build.f_cpu=240000000L
17112+
sparklemotionmini.menu.CPUFreq.160=160MHz (WiFi/BT)
17113+
sparklemotionmini.menu.CPUFreq.160.build.f_cpu=160000000L
17114+
sparklemotionmini.menu.CPUFreq.80=80MHz (WiFi/BT)
17115+
sparklemotionmini.menu.CPUFreq.80.build.f_cpu=80000000L
17116+
sparklemotionmini.menu.CPUFreq.40=40MHz
17117+
sparklemotionmini.menu.CPUFreq.40.build.f_cpu=40000000L
17118+
sparklemotionmini.menu.CPUFreq.20=20MHz
17119+
sparklemotionmini.menu.CPUFreq.20.build.f_cpu=20000000L
17120+
sparklemotionmini.menu.CPUFreq.10=10MHz
17121+
sparklemotionmini.menu.CPUFreq.10.build.f_cpu=10000000L
17122+
17123+
sparklemotionmini.menu.FlashFreq.80=80MHz
17124+
sparklemotionmini.menu.FlashFreq.80.build.flash_freq=80m
17125+
sparklemotionmini.menu.FlashFreq.40=40MHz
17126+
sparklemotionmini.menu.FlashFreq.40.build.flash_freq=40m
17127+
17128+
sparklemotionmini.menu.FlashSize.4M=4MB (32Mb)
17129+
sparklemotionmini.menu.FlashSize.4M.build.flash_size=4MB
17130+
17131+
sparklemotionmini.menu.UploadSpeed.921600=921600
17132+
sparklemotionmini.menu.UploadSpeed.921600.upload.speed=921600
17133+
sparklemotionmini.menu.UploadSpeed.115200=115200
17134+
sparklemotionmini.menu.UploadSpeed.115200.upload.speed=115200
17135+
sparklemotionmini.menu.UploadSpeed.256000.windows=256000
17136+
sparklemotionmini.menu.UploadSpeed.256000.upload.speed=256000
17137+
sparklemotionmini.menu.UploadSpeed.230400.windows.upload.speed=256000
17138+
sparklemotionmini.menu.UploadSpeed.230400=230400
17139+
sparklemotionmini.menu.UploadSpeed.230400.upload.speed=230400
17140+
sparklemotionmini.menu.UploadSpeed.460800.linux=460800
17141+
sparklemotionmini.menu.UploadSpeed.460800.macosx=460800
17142+
sparklemotionmini.menu.UploadSpeed.460800.upload.speed=460800
17143+
sparklemotionmini.menu.UploadSpeed.512000.windows=512000
17144+
sparklemotionmini.menu.UploadSpeed.512000.upload.speed=512000
17145+
17146+
sparklemotionmini.menu.DebugLevel.none=None
17147+
sparklemotionmini.menu.DebugLevel.none.build.code_debug=0
17148+
sparklemotionmini.menu.DebugLevel.error=Error
17149+
sparklemotionmini.menu.DebugLevel.error.build.code_debug=1
17150+
sparklemotionmini.menu.DebugLevel.warn=Warn
17151+
sparklemotionmini.menu.DebugLevel.warn.build.code_debug=2
17152+
sparklemotionmini.menu.DebugLevel.info=Info
17153+
sparklemotionmini.menu.DebugLevel.info.build.code_debug=3
17154+
sparklemotionmini.menu.DebugLevel.debug=Debug
17155+
sparklemotionmini.menu.DebugLevel.debug.build.code_debug=4
17156+
sparklemotionmini.menu.DebugLevel.verbose=Verbose
17157+
sparklemotionmini.menu.DebugLevel.verbose.build.code_debug=5
17158+
17159+
sparklemotionmini.menu.EraseFlash.none=Disabled
17160+
sparklemotionmini.menu.EraseFlash.none.upload.erase_cmd=
17161+
sparklemotionmini.menu.EraseFlash.all=Enabled
17162+
sparklemotionmini.menu.EraseFlash.all.upload.erase_cmd=-e
17163+
17164+
sparklemotionmini.menu.ZigbeeMode.default=Disabled
17165+
sparklemotionmini.menu.ZigbeeMode.default.build.zigbee_mode=
17166+
sparklemotionmini.menu.ZigbeeMode.default.build.zigbee_libs=
17167+
sparklemotionmini.menu.ZigbeeMode.zczr=Zigbee ZCZR (coordinator/router)
17168+
sparklemotionmini.menu.ZigbeeMode.zczr.build.zigbee_mode=-DZIGBEE_MODE_ZCZR
17169+
sparklemotionmini.menu.ZigbeeMode.zczr.build.zigbee_libs=-lesp_zb_api_zczr -lesp_zb_cli_command -lzboss_stack.zczr -lzboss_port
17170+
1690317171
##############################################################
1690417172

1690517173
nodemcu-32s.name=NodeMCU-32S
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 = 2;
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 = 9;
19+
static const uint8_t RX = 10;
20+
21+
#define TX1 TX
22+
#define RX1 RX
23+
24+
static const uint8_t SDA = 14;
25+
static const uint8_t SCL = 13;
26+
27+
static const uint8_t SS = 23;
28+
static const uint8_t MOSI = 9;
29+
static const uint8_t MISO = 10;
30+
static const uint8_t SCK = 18;
31+
32+
static const uint8_t A0 = 27;
33+
34+
// internal switch
35+
static const uint8_t BUTTON = 0;
36+
37+
static const uint8_t T0 = 27;
38+
39+
static const uint8_t DAC1 = 25;
40+
static const uint8_t DAC2 = 26;
41+
42+
#endif /* Pins_Arduino_h */
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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 = 12;
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;
19+
static const uint8_t RX = 26;
20+
21+
#define TX1 TX
22+
#define RX1 RX
23+
24+
static const uint8_t SDA = 19;
25+
static const uint8_t SCL = 22;
26+
27+
static const uint8_t SS = 14;
28+
static const uint8_t MOSI = 25;
29+
static const uint8_t MISO = 26;
30+
static const uint8_t SCK = 27;
31+
32+
static const uint8_t A0 = 13;
33+
34+
// internal switch
35+
static const uint8_t BUTTON = 0;
36+
37+
static const uint8_t T0 = 13;
38+
39+
static const uint8_t DAC1 = 25;
40+
static const uint8_t DAC2 = 26;
41+
42+
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)