nrf/boards: Updating microbit pin mapping for SPI and I2C.

This commit is contained in:
Glenn Ruben Bakke 2017-06-09 00:48:37 +02:00
parent 30b27b1370
commit 72a564b065
2 changed files with 9 additions and 9 deletions

View File

@ -60,9 +60,9 @@
// SPI0 config
#define MICROPY_HW_SPI0_NAME "SPI0"
#define MICROPY_HW_SPI0_SCK (pin_A13)
#define MICROPY_HW_SPI0_MOSI (pin_A15)
#define MICROPY_HW_SPI0_MISO (pin_A14)
#define MICROPY_HW_SPI0_SCK (pin_A23)
#define MICROPY_HW_SPI0_MOSI (pin_A21)
#define MICROPY_HW_SPI0_MISO (pin_A22)
// micro:bit music pin
#define MICROPY_HW_MUSIC_PIN (pin_A3)

View File

@ -1,4 +1,4 @@
PA0,PA0
I2C_SCL,PA0
PA1,PA1
PA2,PA2
PA3,PA3
@ -19,14 +19,14 @@ PA17,PA17
PA18,PA18
PA19,PA19
PA20,PA20
PA21,PA21
PA22,PA22
PA23,PA23
SPI_MOSI,PA21
SPI_MISO,PA22
SPI_SCK,PA23
PA24,PA24
PA25,PA25
PA26,PA26
PA27,PA27
PA28,PA28
PA29,PA29
PA30,PA30
PA31,PA31
I2C_SDA,PA30
PA31,PA31

1 I2C_SCL PA0 PA0
2 PA1 PA1 PA1
3 PA2 PA2 PA2
4 PA3 PA3 PA3
19 PA18 PA18 PA18
20 PA19 PA19 PA19
21 PA20 PA20 PA20
22 SPI_MOSI PA21 PA21
23 SPI_MISO PA22 PA22
24 SPI_SCK PA23 PA23
25 PA24 PA24 PA24
26 PA25 PA25 PA25
27 PA26 PA26 PA26
28 PA27 PA27 PA27
29 PA28 PA28 PA28
30 PA29 PA29 PA29
31 I2C_SDA PA30 PA30
32 PA31 PA31 PA31