Skip to content

Commit 53b7055

Browse files
committed
add SPEAKER pin alias for PyPortal
1 parent 186e315 commit 53b7055

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • ports/atmel-samd/boards/pyportal

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// microcontroller.pin.
1010
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
1111
{ MP_OBJ_NEW_QSTR(MP_QSTR_AUDIO_OUT), MP_ROM_PTR(&pin_PA02) },
12+
{ MP_OBJ_NEW_QSTR(MP_QSTR_SPEAKER), MP_ROM_PTR(&pin_PA02) },
1213
{ MP_OBJ_NEW_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PA02) }, // analog out/in
1314
{ MP_OBJ_NEW_QSTR(MP_QSTR_SPEAKER_ENABLE), MP_ROM_PTR(&pin_PA27) },
1415

0 commit comments

Comments
 (0)