Skip to content

Commit 8f57606

Browse files
authored
Merge pull request adafruit#1635 from caternuson/iss1634_SPEAKER
add SPEAKER pin alias for PyPortal
2 parents eec144d + 46fc8a8 commit 8f57606

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
@@ -8,6 +8,7 @@
88
// out on connectors are labeled with their MCU name available from
99
// microcontroller.pin.
1010
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
11+
{ MP_OBJ_NEW_QSTR(MP_QSTR_SPEAKER), MP_ROM_PTR(&pin_PA02) },
1112
{ MP_OBJ_NEW_QSTR(MP_QSTR_AUDIO_OUT), 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) },

0 commit comments

Comments
 (0)