Skip to content

Commit

Permalink
Update pins.c
Browse files Browse the repository at this point in the history
Both D0 and D1 were assigned to pin_GPIO7, fixed D0 to pin_GPIO6, which also matches the comment.
  • Loading branch information
zapwizard authored and dhalbert committed May 14, 2021
1 parent d8b1df3 commit 8b97d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/raspberrypi/boards/sparkfun_micromod_rp2040/pins.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
// D (Digital only) pins (D0,D1)
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO7) }, // GPIO6 - D0
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_GPIO6) }, // GPIO6 - D0
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_GPIO7) }, // GPIO7 - D1

// A (ADC) pins (A0,A1)
Expand Down

0 comments on commit 8b97d8f

Please sign in to comment.