8000 ports/esp32/boards/SPARKFUN_IOT_REDBOARD_ESP32: Add SparkFun board. by malcolm-sparkfun · Pull Request #16949 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

ports/esp32/boards/SPARKFUN_IOT_REDBOARD_ESP32: Add SparkFun board. #16949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions ports/esp32/boards/SPARKFUN_IOT_REDBOARD_ESP32/board.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"deploy": [
"../deploy.md"
],
"deploy_options": {
"flash_offset": "0x1000"
},
"docs": "",
"features": [
"BLE",
"External Flash",
"WiFi",
"USB-C"
],
"images": [
"19177-Sparkfun_IoT_Redboard-ESP32.jpg"
],
"mcu": "esp32",
"product": "ESP32 / WROOM",
"thumbnail": "",
"url": "https://www.sparkfun.com/sparkfun-iot-redboard-esp32-development-board.html",
"vendor": "SparkFun"
}
2 changes: 2 additions & 0 deletions ports/esp32/boards/SPARKFUN_IOT_REDBOARD_ESP32/manifest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include("$(PORT_DIR)/boards/manifest.py")
require("sdcard")
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.ble
boards/sdkconfig.240mhz
)

set(MICROPY_FROZEN_MANIFEST ${MICROPY_BOARD_DIR}/manifest.py)
14 changes: 14 additions & 0 deletions ports/esp32/boards/SPARKFUN_IOT_REDBOARD_ESP32/mpconfigboard.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Board and hardware specific configuration

#define MICROPY_HW_BOARD_NAME "SparkFun IoT RedBoard ESP32"
#define MICROPY_HW_MCU_NAME "ESP32"

// Enable UART REPL for modules that have an external USB-UART and don't use native USB.
#define MICROPY_HW_ENABLE_UART_REPL (1)

#define MICROPY_HW_I2C0_SCL (22)
#define MICROPY_HW_I2C0_SDA (21)

#define MICROPY_HW_SPI1_SCK (18)
#define MICROPY_HW_SPI1_MOSI (23)
#define MICROPY_HW_SPI1_MISO (19)
22 changes: 22 additions & 0 deletions ports/esp32/boards/SPARKFUN_IOT_REDBOARD_ESP32/pins.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
TX,GPIO1
RX,GPIO3
ALERT,GPIO4
TCK,GPIO13
TMS,GPIO14
CS,GPIO5
PICO,GPIO23
POCI,GPIO19
SCK,GPIO18
SDA,GPIO21
SCL,GPIO22
A0,GPIO36
A3,GPIO39
A4,GPIO32
A5,GPIO33
A6,GPIO34
A7,GPIO35
LED,GPIO18
LED_BLUE,GPIO18
BLUE_LED,GPIO18
RGB_LED,GPIO2
NEOPIXEL,GPIO2
Loading
0