Skip to content

Commit 2fac485

Browse files
committed
fix typo, tested hardware, neopixel doesnt work tho
1 parent 6fff4ec commit 2fac485

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ports/atmel-samd/boards/qtpy_m0/board.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
*/
2626

2727
#include "boards/board.h"
28+
#include "common-hal/microcontroller/Pin.h"
29+
#include "supervisor/shared/board.h"
30+
#include "hal/include/hal_gpio.h"
2831

2932
void board_init(void) {
3033
gpio_set_pin_function(PIN_PA18, GPIO_PIN_FUNCTION_OFF);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
2323
{ MP_ROM_QSTR(MP_QSTR_A6), MP_ROM_PTR(&pin_PA06) },
2424
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_PA06) },
2525

26-
{ MP_ROM_QSTR(MP_QSTR_D7, MP_ROM_PTR(&pin_PA07) },
26+
{ MP_ROM_QSTR(MP_QSTR_D7), MP_ROM_PTR(&pin_PA07) },
2727
{ MP_ROM_QSTR(MP_QSTR_A7), MP_ROM_PTR(&pin_PA07) },
2828
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_PA07) },
2929

0 commit comments

Comments
 (0)