update teknikio bluebird pin assignments

This commit is contained in:
JoeBakalor 2020-04-30 09:58:27 -04:00
parent 2d7cf4b792
commit 36a71560c2
3 changed files with 10 additions and 4 deletions

View File

@ -33,7 +33,7 @@
#define MICROPY_HW_BOARD_NAME "Teknikio Bluebird"
#define MICROPY_HW_MCU_NAME "nRF52840"
#define MICROPY_HW_NEOPIXEL (&pin_P0_26)
#define MICROPY_HW_NEOPIXEL (&pin_P1_15)
#define DEFAULT_I2C_BUS_SCL (&pin_P0_27)
#define DEFAULT_I2C_BUS_SDA (&pin_P0_26)

View File

@ -6,3 +6,9 @@ USB_MANUFACTURER = "Teknikio"
MCU_CHIP = nrf52840
INTERNAL_FLASH_FILESYSTEM = 1
CIRCUITPY_ANALOGIO = 1
CIRCUITPY_AUDIOCORE = 1
CIRCUITPY_AUDIOPWMIO = 1
CIRCUITPY_DIGITALIO = 1
CIRCUITPY_NEOPIXEL_WRITE = 1
CIRCUITPY_TIME = 1

View File

@ -47,16 +47,16 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
{ MP_ROM_QSTR(MP_QSTR_A4), MP_ROM_PTR(&pin_P0_03) },
{ MP_ROM_QSTR(MP_QSTR_D4), MP_ROM_PTR(&pin_P0_03) },
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_P0_26) },
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_P1_15) },
{ MP_ROM_QSTR(MP_QSTR_LIGHT), MP_ROM_PTR(&pin_P0_28) },
{ MP_ROM_QSTR(MP_QSTR_LIGHT_ENABLE), MP_ROM_PTR(&pin_P0_30) },
{ MP_ROM_QSTR(MP_QSTR_SPEAKER), MP_ROM_PTR(&pin_P1_15) },
{ MP_ROM_QSTR(MP_QSTR_SPEAKER), MP_ROM_PTR(&pin_P1_14) },
{ MP_ROM_QSTR(MP_QSTR_ACCELEROMETER_INTERRUPT), MP_ROM_PTR(&pin_P1_10) },
{ MP_ROM_QSTR(MP_QSTR_ACCELEROMETER_SDA), MP_ROM_PTR(&pin_P1_12) },
{ MP_ROM_QSTR(MP_QSTR_ACCELEROMETER_SCL), MP_ROM_PTR(&pin_P1_11) },
};
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);