| Feature | Supported |
|---|---|
| Pin | ✅ |
| PWM | ❌ |
| ADC | ❌ |
| DAC | ❌ |
| Timer | ❌ |
| UART | ❌ |
| Soft I2C | ❌ |
| I2C | ❌ |
| diff --git a/ports/stm32/boards/NODE_151/mpconfigboard.h b/ports/stm32/boards/NODE_151/mpconfigboard.h | |
| index a16a88e6e..f5344ca0d 100644 | |
| --- a/ports/stm32/boards/NODE_151/mpconfigboard.h | |
| +++ b/ports/stm32/boards/NODE_151/mpconfigboard.h | |
| @@ -1,8 +1,8 @@ | |
| #define MICROPY_HW_BOARD_NAME "Node151v2.2" | |
| #define MICROPY_HW_MCU_NAME "STM32L151CCU" | |
| -#define MICROPY_HW_UART_REPL PYB_UART_1 | |
| -#define MICROPY_HW_UART_REPL_BAUD 115200 |
| ▁▁ | |
| ▁▁▏▕▁▁ | |
| ▏▕ | |
| ▔▔ |
| import re | |
| tpp = """ | |
| ┌────┐ | |
| ╭───┤ ├───╮ | |
| │ │ │ │ | |
| [MO] [23] │ ⌾ └────┘ ⌾ │ [BAT] | |
| [MI] [19] │ ⌾ ▣ │ ⏚ | |
| [SCK] [18] │ ⌾ ⌾ │ [5V] | |
| [SS] [ 5] │ ⌾ ⌾ │ [3V3] | |
| [SCL] [22] │ ⌾ ⌾ │ [ 4] [TCH0] [ADC2-0] [RTC10] |
| #define MICROPY_HW_BOARD_NAME "NUCLEO_H503RB" | |
| #define MICROPY_HW_MCU_NAME "STM32H503RB" | |
| #define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_CORE_FEATURES) | |
| #define MICROPY_PY_PYB_LEGACY (0) | |
| #define MICROPY_HW_ENABLE_INTERNAL_FLASH_STORAGE (1) | |
| #define MICROPY_HW_ENABLE_RTC (1) | |
| #define MICROPY_HW_ENABLE_RNG (1) | |
| #define MICROPY_HW_ENABLE_ADC (1) |
| def i2cdetect(addresses): | |
| print(" 0 1 2 3 4 5 6 7 8 9 a b c d e f") | |
| for i in range(0x8): | |
| print(f"{i*0x10:02x}:", end="") | |
| for j in range(0x10): | |
| addr = i * 0x10 + j | |
| if 0x02 < addr < 0x78: | |
| if addr in addresses: | |
| print(f" {addr:02x}", end="") | |
| else: |
| # The microcontroller used was a SeeedStudio XIAO RP2040. | |
| # Modify `spi` and `cs` appropriately to work on any other micro. | |
| from machine import Pin, SPI | |
| spi = SPI(0, baudrate=20_000_000) # Initialise SPI at 20MHz. Note that on RP2040 due to clock configurations this is closer to 15MHz. | |
| cs = Pin.board.CSn | |
| cs.init(Pin.OUT, value=1) # Initialise CS high, ie no transmission |
A minimal table to compare the Espressif's MCU families.
| | ESP32 | ESP32-S2 | ESP32-S3 | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-H2 | ESP32-H4 | |--------------------------- |------------------------------------------------------------------- |--------------------------------------------- |------------------------------------------------------ |------------------------------------------------------ |--------------------------------------------- |------------------------------------------------------ |----------