Skip to content

Commit ac598a3

Browse files
authored
Merge pull request #9371 from stonehippo/main
Add note re Seeed WIO Terminal accelerometer pins
2 parents 3aa12b6 + 49e67ad commit ac598a3

File tree

1 file changed

+5
-4
lines changed
  • ports/atmel-samd/boards/seeeduino_wio_terminal

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,15 @@ static const mp_rom_map_elem_t board_module_globals_table[] = {
8282
{ MP_OBJ_NEW_QSTR(MP_QSTR_BUTTON_2), MP_ROM_PTR(&pin_PC27) },
8383
{ MP_OBJ_NEW_QSTR(MP_QSTR_BUTTON_3), MP_ROM_PTR(&pin_PC28) },
8484

85-
// Special named pins
85+
// Special named pins - follows the schematic, but see comments
86+
// The WIO Terminal has an accelerometer, not a gyroscope
8687
{ MP_OBJ_NEW_QSTR(MP_QSTR_LIGHT), MP_ROM_PTR(&pin_PD01) },
8788
{ MP_OBJ_NEW_QSTR(MP_QSTR_BUZZER), MP_ROM_PTR(&pin_PD11) },
8889
{ MP_OBJ_NEW_QSTR(MP_QSTR_IR), MP_ROM_PTR(&pin_PB31) },
8990
{ MP_OBJ_NEW_QSTR(MP_QSTR_MIC), MP_ROM_PTR(&pin_PC30) },
90-
{ MP_ROM_QSTR(MP_QSTR_GYROSCOPE_SCL), MP_ROM_PTR(&pin_PA12) },
91-
{ MP_ROM_QSTR(MP_QSTR_GYROSCOPE_SDA), MP_ROM_PTR(&pin_PA13) },
92-
{ MP_ROM_QSTR(MP_QSTR_GYROSCOPE_INT), MP_ROM_PTR(&pin_PC21) },
91+
{ MP_ROM_QSTR(MP_QSTR_GYROSCOPE_SCL), MP_ROM_PTR(&pin_PA12) }, // Despite the name, this is the ACCELEROMETER
92+
{ MP_ROM_QSTR(MP_QSTR_GYROSCOPE_SDA), MP_ROM_PTR(&pin_PA13) }, // Despite the name, this is the ACCELEROMETER
93+
{ MP_ROM_QSTR(MP_QSTR_GYROSCOPE_INT), MP_ROM_PTR(&pin_PC21) }, // Despite the name, this is the ACCELEROMETER
9394

9495
// DAC
9596
{ MP_OBJ_NEW_QSTR(MP_QSTR_DAC0), MP_ROM_PTR(&pin_PA02) },

0 commit comments

Comments
 (0)