File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
ports/espressif/boards/sensebox_mcu_esp32s2 Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 7
7
#pragma once
8
8
9
9
// Micropython setup
10
+
11
+ #define MICROPY_HW_BOARD_NAME "senseBox MCU-S2 ESP32S2"
12
+ #define MICROPY_HW_MCU_NAME "ESP32S2"
13
+
14
+ #define MICROPY_HW_NEOPIXEL (&pin_GPIO1)
15
+
16
+ #define CIRCUITPY_I2C_ALLOW_INTERNAL_PULL_UP 1
17
+
18
+ #define CIRCUITPY_BOARD_I2C (2)
19
+ #define CIRCUITPY_BOARD_I2C_PIN {{.scl = &pin_GPIO40, .sda = &pin_GPIO39}, \
20
+ {.scl = &pin_GPIO42, .sda = &pin_GPIO45}}
21
+ #define DEFAULT_SPI_BUS_SCK (&pin_GPIO36)
22
+ #define DEFAULT_SPI_BUS_MOSI (&pin_GPIO35)
23
+ #define DEFAULT_SPI_BUS_MISO (&pin_GPIO37)
24
+
25
+ #define DEFAULT_UART_BUS_RX (&pin_GPIO44)
26
+ #define DEFAULT_UART_BUS_TX (&pin_GPIO43)
27
+
28
+ #define CIRCUITPY_BOARD_SPI (1)
29
+ #define CIRCUITPY_BOARD_SPI_PIN {{.clock = &pin_GPIO36, .mosi = &pin_GPIO35, .miso = &pin_GPIO37}}
30
+
31
+ #define CIRCUITPY_BOARD_UART (1)
32
+ #define CIRCUITPY_BOARD_UART_PIN {{.tx = &pin_GPIO43, .rx = &pin_GPIO44}}
You can’t perform that action at this time.
0 commit comments