nrf5/boards: Adding micro:bit default music pin definition. Also adding config flag for enabling pwm machine module.

This commit is contained in:
Glenn Ruben Bakke 2017-05-08 22:16:59 +02:00
parent 130a00fdeb
commit bf79699810
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#define MICROPY_HW_MCU_NAME "NRF51822"
#define MICROPY_PY_SYS_PLATFORM "nrf51"
#define MICROPY_PY_MACHINE_SOFT_PWM (0)
#define MICROPY_PY_MACHINE_HW_SPI (1)
#define MICROPY_PY_MACHINE_TIMER (1)
#define MICROPY_PY_MACHINE_RTC (1)
@ -68,4 +69,7 @@
#define MICROPY_HW_SPI0_MOSI (pin_A15)
#define MICROPY_HW_SPI0_MISO (pin_A14)
// micro:bit music pin
#define MICROPY_HW_MUSIC_PIN (pin_A3)
#define HELP_TEXT_BOARD_LED "1,2,3,4"