Skip to content

Commit 0d9ac1b

Browse files
committed
add sparkle motion board (w/esp32 mini module)
1 parent 9eb7dc6 commit 0d9ac1b

File tree

2 files changed

+176
-0
lines changed

2 files changed

+176
-0
lines changed

Diff for: boards.txt

+134
Original file line numberDiff line numberDiff line change
@@ -16900,6 +16900,140 @@ 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+
1690317037
##############################################################
1690417038

1690517039
nodemcu-32s.name=NodeMCU-32S

Diff for: variants/adafruit_sparklemotion_esp32/pins_arduino.h

+42
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 */

0 commit comments

Comments
 (0)