Skip to content

Commit 3494634

Browse files
ports/esp32: Add initial Sparkfun ESP32 Boards.
Signed-off-by: Malcolm McKellips <[email protected]>
1 parent 1100aa6 commit 3494634

File tree

21 files changed

+248
-0
lines changed

21 files changed

+248
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"deploy_options": {
6+
"flash_offset": "0x1000"
7+
},
8+
"docs": "",
9+
"features": [
10+
"BLE",
11+
"External Flash",
12+
"WiFi",
13+
"USB-C"
14+
],
15+
"images": [
16+
"19177-Sparkfun_IoT_Redboard-ESP32.jpg"
17+
],
18+
"mcu": "esp32",
19+
"product": "ESP32 / WROOM",
20+
"thumbnail": "",
21+
"url": "https://www.sparkfun.com/sparkfun-iot-redboard-esp32-development-board.html",
22+
"vendor": "Sparkfun"
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set(SDKCONFIG_DEFAULTS
2+
boards/sdkconfig.base
3+
boards/sdkconfig.ble
4+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Board and hardware specific configuration
2+
3+
#define MICROPY_HW_BOARD_NAME "SparkFun IoT RedBoard"
4+
#define MICROPY_HW_MCU_NAME "ESP32"
5+
6+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
7+
#define MICROPY_HW_ENABLE_UART_REPL (1)
8+
9+
#define MICROPY_HW_I2C0_SCL (22)
10+
#define MICROPY_HW_I2C0_SDA (21)
11+
12+
#define MICROPY_HW_SPI0_SCK (18)
13+
#define MICROPY_HW_SPI0_MOSI (23)
14+
#define MICROPY_HW_SPI0_MISO (19)
15+
16+
#define MICROPY_HW_UART0_TX (1)
17+
#define MICROPY_HW_UART0_RX (3)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
LED,GPIO18
2+
LED_BLUE,GPIO18
3+
BLUE_LED,GPIO18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"deploy_options": {
6+
"flash_offset": "0x1000"
7+
},
8+
"docs": "",
9+
"features": [
10+
"BLE",
11+
"External Flash",
12+
"WiFi"
13+
],
14+
"images": [
15+
"15663-SparkFun_Thing_Plus_-_ESP32_WROOM.jpg"
16+
],
17+
"mcu": "esp32",
18+
"product": "ESP32 / WROOM",
19+
"thumbnail": "",
20+
"url": "https://www.sparkfun.com/sparkfun-thing-plus-esp32-wroom-micro-b.html",
21+
"vendor": "Sparkfun"
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set(SDKCONFIG_DEFAULTS
2+
boards/sdkconfig.base
3+
boards/sdkconfig.ble
4+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Board and hardware specific configuration
2+
#ifndef MICROPY_HW_BOARD_NAME
3+
#define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus ESP32 WROOM"
4+
#endif
5+
#define MICROPY_HW_MCU_NAME "ESP32"
6+
7+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
8+
#define MICROPY_HW_ENABLE_UART_REPL (1)
9+
10+
#define MICROPY_HW_I2C0_SCL (22)
11+
#define MICROPY_HW_I2C0_SDA (23)
12+
13+
#define MICROPY_HW_SPI0_SCK (5)
14+
#define MICROPY_HW_SPI0_MOSI (18)
15+
#define MICROPY_HW_SPI0_MISO (19)
16+
17+
#define MICROPY_HW_UART0_TX (17)
18+
#define MICROPY_HW_UART0_RX (16)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
list(APPEND MICROPY_DEF_BOARD
2+
MICROPY_HW_BOARD_NAME="SparkFun Thing Plus ESP32 (U.FL)"
3+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
LED,GPIO13
2+
LED_BLUE,GPIO13
3+
BLUE_LED,GPIO13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"deploy_options": {
6+
"flash_offset": "0x1000"
7+
},
8+
"docs": "",
9+
"features": [
10+
"BLE",
11+
"External Flash",
12+
"WiFi",
13+
"USB-C"
14+
],
15+
"images": [
16+
"17743-SparkFun_Thing_Plus_-_ESP32-S2.jpg"
17+
],
18+
"mcu": "esp32s2",
19+
"product": "ESP32-S2",
20+
"thumbnail": "",
21+
"url": "https://www.sparkfun.com/sparkfun-thing-plus-esp32-s2-wroom.html",
22+
"vendor": "Sparkfun"
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
set(IDF_TARGET esp32s2)
2+
3+
set(SDKCONFIG_DEFAULTS
4+
boards/sdkconfig.base
5+
boards/sdkconfig.usb
6+
boards/sdkconfig.spiram_sx
7+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Board and hardware specific configuration
2+
3+
#define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus ESP32-S2"
4+
#define MICROPY_HW_MCU_NAME "ESP32S2"
5+
6+
#define MICROPY_PY_BLUETOOTH (0)
7+
#define MICROPY_HW_ENABLE_SDCARD (0)
8+
9+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
10+
#define MICROPY_HW_ENABLE_UART_REPL (1)
11+
12+
#define MICROPY_HW_I2C0_SCL (2)
13+
#define MICROPY_HW_I2C0_SDA (1)
14+
15+
#define MICROPY_HW_SPI0_SCK (36)
16+
#define MICROPY_HW_SPI0_MOSI (35)
17+
#define MICROPY_HW_SPI0_MISO (37)
18+
19+
#define MICROPY_HW_UART0_TX (33)
20+
#define MICROPY_HW_UART0_RX (34)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
LED,GPIO13
2+
LED_BLUE,GPIO13
3+
BLUE_LED,GPIO13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"deploy_options": {
6+
"flash_offset": "0x1000"
7+
},
8+
"docs": "",
9+
"features": [
10+
"BLE",
11+
"External Flash",
12+
"WiFi",
13+
"USB-C"
14+
],
15+
"images": [
16+
"24408-Sparkfun_Thing_Plus_-_ESP32-S3.jpg"
17+
],
18+
"mcu": "esp32s3",
19+
"product": "ESP32 / WROOM",
20+
"thumbnail": "",
21+
"url": "https://www.sparkfun.com/sparkfun-thing-plus-esp32-s3.html",
22+
"vendor": "Sparkfun"
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
set(IDF_TARGET esp32s3)
2+
3+
set(SDKCONFIG_DEFAULTS
4+
boards/sdkconfig.base
5+
boards/sdkconfig.usb
6+
boards/sdkconfig.ble
7+
boards/sdkconfig.spiram_sx
8+
boards/ESP32_GENERIC_S3/sdkconfig.board
9+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Board and hardware specific configuration
2+
#define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus ESP32-S3"
3+
#define MICROPY_HW_MCU_NAME "ESP32S3"
4+
5+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
6+
#define MICROPY_HW_ENABLE_UART_REPL (1)
7+
8+
#define MICROPY_HW_I2C0_SCL (9)
9+
#define MICROPY_HW_I2C0_SDA (8)
10+
11+
#define MICROPY_HW_SPI0_SCK (12)
12+
#define MICROPY_HW_SPI0_MOSI (11)
13+
#define MICROPY_HW_SPI0_MISO (13)
14+
15+
#define MICROPY_HW_UART0_TX (43)
16+
#define MICROPY_HW_UART0_RX (44)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
LED,GPIO46
2+
LED_RGB,GPIO46
3+
RGB_LED,GPIO46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"deploy_options": {
6+
"flash_offset": "0x1000"
7+
},
8+
"docs": "",
9+
"features": [
10+
"BLE",
11+
"External Flash",
12+
"WiFi",
13+
"USB-C"
14+
],
15+
"images": [
16+
"20168-Sparkfun_Thing_Plus_-_ESP32_USBC.jpg"
17+
],
18+
"mcu": "esp32",
19+
"product": "ESP32 / WROOM",
20+
"thumbnail": "",
21+
"url": "https://www.sparkfun.com/sparkfun-thing-plus-esp32-wroom-usb-c.html",
22+
"vendor": "Sparkfun"
23+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set(SDKCONFIG_DEFAULTS
2+
boards/sdkconfig.base
3+
boards/sdkconfig.ble
4+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Board and hardware specific configuration
2+
3+
#define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus ESP32 WROOM (USBC)"
4+
#define MICROPY_HW_MCU_NAME "ESP32"
5+
6+
// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
7+
#define MICROPY_HW_ENABLE_UART_REPL (1)
8+
9+
#define MICROPY_HW_I2C0_SCL (22)
10+
#define MICROPY_HW_I2C0_SDA (21)
11+
12+
#define MICROPY_HW_SPI0_SCK (18)
13+
#define MICROPY_HW_SPI0_MOSI (23)
14+
#define MICROPY_HW_SPI0_MISO (19)
15+
16+
#define MICROPY_HW_UART0_TX (1)
17+
#define MICROPY_HW_UART0_RX (3)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
LED,GPIO13
2+
LED_RGB,GPIO2
3+
RGB_LED,GPIO2

0 commit comments

Comments
 (0)