File tree Expand file tree Collapse file tree
ports/esp32s2/boards/microdev_micro_s2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525 */
2626
2727//Micropython setup
28-
2928#define MICROPY_HW_BOARD_NAME "microS2"
3029#define MICROPY_HW_MCU_NAME "ESP32S2"
3130
3231#define MICROPY_HW_LED (&pin_GPIO21)
3332#define MICROPY_HW_BUTTON (&pin_GPIO0)
3433#define MICROPY_HW_NEOPIXEL (&pin_GPIO33)
3534
35+ // Default bus pins
36+ #define DEFAULT_I2C_BUS_SCL (&pin_GPIO1)
37+ #define DEFAULT_I2C_BUS_SDA (&pin_GPIO2)
38+
39+ #define DEFAULT_SPI_BUS_SCK (&pin_GPIO36)
40+ #define DEFAULT_SPI_BUS_MOSI (&pin_GPIO35)
41+ #define DEFAULT_SPI_BUS_MISO (&pin_GPIO37)
42+
43+ #define DEFAULT_UART_BUS_TX (&pin_GPIO43)
44+ #define DEFAULT_UART_BUS_RX (&pin_GPIO44)
45+
3646#define CIRCUITPY_BOOT_BUTTON (&pin_GPIO0)
3747
48+ // Explanation of how a user got into safe mode.
3849#define BOARD_USER_SAFE_MODE_ACTION translate("pressing boot button at start up.\n")
3950
4051#define AUTORESET_DELAY_MS 500
You can’t perform that action at this time.
0 commit comments