diff options
| author | Dan Halbert <halbert@adafruit.com> | 2019-11-18 23:45:09 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-18 23:45:09 -0500 |
| commit | 1a22d8a0f23aa9aee426b8716220d907f9cb98d6 (patch) | |
| tree | 71c406bfc4c3fb4c7edfc9639fcc7936d4501a47 /ports/stm32f4/boards | |
| parent | 41aa2145891ee564b6349d3cd93b3fba415e35ee (diff) | |
| parent | a4797327cd4ea9fd53e00bf2ecfc82c30e413cec (diff) | |
Merge pull request #2291 from hierophect/stm32-neopixel5.0.0-beta.0
STM32: Neopixel support
Diffstat (limited to 'ports/stm32f4/boards')
| -rw-r--r-- | ports/stm32f4/boards/feather_stm32f405_express/mpconfigboard.h | 10 | ||||
| -rw-r--r-- | ports/stm32f4/boards/feather_stm32f405_express/pins.c | 1 |
2 files changed, 7 insertions, 4 deletions
diff --git a/ports/stm32f4/boards/feather_stm32f405_express/mpconfigboard.h b/ports/stm32f4/boards/feather_stm32f405_express/mpconfigboard.h index 67ddc885a..dc88f695a 100644 --- a/ports/stm32f4/boards/feather_stm32f405_express/mpconfigboard.h +++ b/ports/stm32f4/boards/feather_stm32f405_express/mpconfigboard.h @@ -35,11 +35,13 @@ #define AUTORESET_DELAY_MS 500 #define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000) +#define MICROPY_HW_NEOPIXEL (&pin_PC00) + // On-board flash -#define SPI_FLASH_MOSI_PIN &pin_PB05 -#define SPI_FLASH_MISO_PIN &pin_PB04 -#define SPI_FLASH_SCK_PIN &pin_PB03 -#define SPI_FLASH_CS_PIN &pin_PA15 +#define SPI_FLASH_MOSI_PIN (&pin_PB05) +#define SPI_FLASH_MISO_PIN (&pin_PB04) +#define SPI_FLASH_SCK_PIN (&pin_PB03) +#define SPI_FLASH_CS_PIN (&pin_PA15) #define DEFAULT_I2C_BUS_SCL (&pin_PB06) #define DEFAULT_I2C_BUS_SDA (&pin_PB07) diff --git a/ports/stm32f4/boards/feather_stm32f405_express/pins.c b/ports/stm32f4/boards/feather_stm32f405_express/pins.c index 4aa1f362a..180fdd093 100644 --- a/ports/stm32f4/boards/feather_stm32f405_express/pins.c +++ b/ports/stm32f4/boards/feather_stm32f405_express/pins.c @@ -26,6 +26,7 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_PB10) }, { MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_PB11) }, + { MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PC00) }, { MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) }, { MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) }, { MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) }, |
