Skip to content

Commit 9a74bf9

Browse files
committed
Added TFT pins to HalloWing M4 for code compatibility
1 parent b7598f7 commit 9a74bf9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • ports/atmel-samd/boards/hallowing_m4_express

ports/atmel-samd/boards/hallowing_m4_express/pins.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
4040
{ MP_ROM_QSTR(MP_QSTR_D11), MP_ROM_PTR(&pin_PA20) },
4141
{ MP_ROM_QSTR(MP_QSTR_D12), MP_ROM_PTR(&pin_PA21) },
4242
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PA23) },
43+
44+
{ MP_ROM_QSTR(MP_QSTR_TFT_BACKLIGHT), MP_ROM_PTR(&pin_PB14) },
45+
{ MP_ROM_QSTR(MP_QSTR_TFT_CS), MP_ROM_PTR(&pin_PA27) },
46+
{ MP_ROM_QSTR(MP_QSTR_TFT_DC), MP_ROM_PTR(&pin_PB31) },
47+
{ MP_ROM_QSTR(MP_QSTR_TFT_RESET), MP_ROM_PTR(&pin_PB30) },
48+
4349
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PB16) },
4450
{ MP_ROM_QSTR(MP_QSTR_D8), MP_ROM_PTR(&pin_PB16) },
4551
{ MP_ROM_QSTR(MP_QSTR_VOLTAGE_MONITOR), MP_ROM_PTR(&pin_PB01) },

0 commit comments

Comments
 (0)