Skip to content

Commit 2ef6144

Browse files
committed
add stemma_i2c on adafruit_qtpy_rp2040
1 parent 0c55b83 commit 2ef6144

File tree

1 file changed

+3
-2
lines changed
  • ports/raspberrypi/boards/adafruit_qtpy_rp2040

1 file changed

+3
-2
lines changed

ports/raspberrypi/boards/adafruit_qtpy_rp2040/pins.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "shared-bindings/board/__init__.h"
22

3-
CIRCUITPY_BOARD_BUS_SINGLETON(qwiic_i2c, i2c, 1)
3+
CIRCUITPY_BOARD_BUS_SINGLETON(i2c_port, i2c, 1)
44

55
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
66
CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS
@@ -50,6 +50,7 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
5050
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
5151
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
5252

53-
{ MP_ROM_QSTR(MP_QSTR_QWIIC_I2C), MP_ROM_PTR(&board_qwiic_i2c_obj) },
53+
{ MP_ROM_QSTR(MP_QSTR_QWIIC_I2C), MP_ROM_PTR(&board_i2c_port_obj) },
54+
{ MP_ROM_QSTR(MP_QSTR_STEMMA_I2C), MP_ROM_PTR(&board_i2c_port_obj) },
5455
};
5556
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

0 commit comments

Comments
 (0)