esp32/boards: Set default I2C and SPI pins on UM_xxx boards.
And fix incorrect I2C and SPI pins in the feathers2 module.
This commit is contained in:
parent
538b9a9be5
commit
9e65662a11
@ -22,12 +22,12 @@ DOTSTAR_DATA = const(40)
|
|||||||
|
|
||||||
# SPI
|
# SPI
|
||||||
SPI_MOSI = const(35)
|
SPI_MOSI = const(35)
|
||||||
SPI_MISO = const(36)
|
SPI_MISO = const(37)
|
||||||
SPI_CLK = const(37)
|
SPI_CLK = const(36)
|
||||||
|
|
||||||
# I2C
|
# I2C
|
||||||
I2C_SDA = const(38)
|
I2C_SDA = const(8)
|
||||||
I2C_SCL = const(33)
|
I2C_SCL = const(9)
|
||||||
|
|
||||||
# DAC
|
# DAC
|
||||||
DAC1 = const(17)
|
DAC1 = const(17)
|
||||||
|
@ -2,4 +2,11 @@
|
|||||||
#define MICROPY_HW_MCU_NAME "ESP32-S2"
|
#define MICROPY_HW_MCU_NAME "ESP32-S2"
|
||||||
|
|
||||||
#define MICROPY_PY_BLUETOOTH (0)
|
#define MICROPY_PY_BLUETOOTH (0)
|
||||||
#define MICROPY_HW_ENABLE_SDCARD (0)
|
#define MICROPY_HW_ENABLE_SDCARD (0)
|
||||||
|
|
||||||
|
#define MICROPY_HW_I2C0_SCL (9)
|
||||||
|
#define MICROPY_HW_I2C0_SDA (8)
|
||||||
|
|
||||||
|
#define MICROPY_HW_SPI1_MOSI (35) // SDO
|
||||||
|
#define MICROPY_HW_SPI1_MISO (37) // SDI
|
||||||
|
#define MICROPY_HW_SPI1_SCK (36)
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#define MICROPY_HW_BOARD_NAME "TinyPICO"
|
#define MICROPY_HW_BOARD_NAME "TinyPICO"
|
||||||
#define MICROPY_HW_MCU_NAME "ESP32-PICO-D4"
|
#define MICROPY_HW_MCU_NAME "ESP32-PICO-D4"
|
||||||
|
|
||||||
|
#define MICROPY_HW_I2C0_SCL (22)
|
||||||
|
#define MICROPY_HW_I2C0_SDA (21)
|
||||||
|
|
||||||
#define MICROPY_HW_SPI1_SCK (18)
|
#define MICROPY_HW_SPI1_SCK (18)
|
||||||
#define MICROPY_HW_SPI1_MOSI (23)
|
#define MICROPY_HW_SPI1_MOSI (23)
|
||||||
#define MICROPY_HW_SPI1_MISO (19)
|
#define MICROPY_HW_SPI1_MISO (19)
|
||||||
|
@ -4,6 +4,9 @@
|
|||||||
#define MICROPY_PY_BLUETOOTH (0)
|
#define MICROPY_PY_BLUETOOTH (0)
|
||||||
#define MICROPY_HW_ENABLE_SDCARD (0)
|
#define MICROPY_HW_ENABLE_SDCARD (0)
|
||||||
|
|
||||||
|
#define MICROPY_HW_I2C0_SCL (9)
|
||||||
|
#define MICROPY_HW_I2C0_SDA (8)
|
||||||
|
|
||||||
#define MICROPY_HW_SPI1_MOSI (35)
|
#define MICROPY_HW_SPI1_MOSI (35)
|
||||||
#define MICROPY_HW_SPI1_MISO (36)
|
#define MICROPY_HW_SPI1_MISO (36)
|
||||||
#define MICROPY_HW_SPI1_SCK (37)
|
#define MICROPY_HW_SPI1_SCK (37)
|
||||||
|
Loading…
Reference in New Issue
Block a user