Skip to content

Commit 910662e

Browse files
committed
Finalised motor 2040 pins
1 parent 1ccf767 commit 910662e

File tree

1 file changed

+5
-2
lines changed
  • ports/raspberrypi/boards/pimoroni_motor2040

1 file changed

+5
-2
lines changed

ports/raspberrypi/boards/pimoroni_motor2040/pins.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
2323
{ MP_ROM_QSTR(MP_QSTR_ENCODER_D_B), MP_ROM_PTR(&pin_GPIO15) },
2424
{ MP_ROM_QSTR(MP_QSTR_NUM_ENCODERS), MP_ROM_INT(4) },
2525

26-
{ MP_ROM_QSTR(MP_QSTR_TX_TRIG), MP_ROM_PTR(&pin_GPIO16) },
27-
{ MP_ROM_QSTR(MP_QSTR_RX_ECHO), MP_ROM_PTR(&pin_GPIO17) },
26+
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO16) },
27+
{ MP_ROM_QSTR(MP_QSTR_TRIG), MP_ROM_PTR(&pin_GPIO16) },
28+
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO17) },
29+
{ MP_ROM_QSTR(MP_QSTR_ECHO), MP_ROM_PTR(&pin_GPIO17) },
2830

31+
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_GPIO18) },
2932
{ MP_ROM_QSTR(MP_QSTR_LED_DATA), MP_ROM_PTR(&pin_GPIO18) },
3033
{ MP_ROM_QSTR(MP_QSTR_NUM_LEDS), MP_ROM_INT(1) },
3134

0 commit comments

Comments
 (0)