Skip to content

Commit

Permalink
adafruit_sproutsense_m0: fix pin assignments
Browse files Browse the repository at this point in the history
  • Loading branch information
dhalbert committed May 15, 2024
1 parent cb4cb6f commit aeb7f44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define MICROPY_HW_NEOPIXEL (&pin_PA01)
#define MICROPY_HW_NEOPIXEL_COUNT (1)

#define IGNORE_PIN_PA02 1
#define IGNORE_PIN_PA00 1

#define IGNORE_PIN_PA05 1
#define IGNORE_PIN_PA06 1
Expand Down
7 changes: 4 additions & 3 deletions ports/atmel-samd/boards/adafruit_sproutsense_m0/pins.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS

{ MP_ROM_QSTR(MP_QSTR_LIGHT), MP_ROM_PTR(&pin_PA00) },
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PA01) },

{ MP_ROM_QSTR(MP_QSTR_EXCITATION), MP_ROM_PTR(&pin_PA01) },
{ MP_ROM_QSTR(MP_QSTR_SENSE), MP_ROM_PTR(&pin_PA01) },
{ MP_ROM_QSTR(MP_QSTR_LIGHT), MP_ROM_PTR(&pin_PA02) },

{ MP_ROM_QSTR(MP_QSTR_EXCITATION), MP_ROM_PTR(&pin_PA03) },
{ MP_ROM_QSTR(MP_QSTR_SENSE), MP_ROM_PTR(&pin_PA04) },

{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_PA16) },
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_PA17) },
Expand Down

0 comments on commit aeb7f44

Please sign in to comment.