Skip to content

Commit 6804b2a

Browse files
author
Michael Welling
committed
Add I2C pin definitions for interoperability with Adafruit libraries
Signed-off-by: Michael Welling <[email protected]>
1 parent 33dcdd7 commit 6804b2a

File tree

1 file changed

+3
-0
lines changed
  • ports/nrf/boards/ohs2020_badge

1 file changed

+3
-0
lines changed

ports/nrf/boards/ohs2020_badge/pins.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
1212
{ MP_ROM_QSTR(MP_QSTR_TFT_SCK), MP_ROM_PTR(&pin_P0_11) },
1313
{ MP_ROM_QSTR(MP_QSTR_TFT_MOSI), MP_ROM_PTR(&pin_P0_12) },
1414

15+
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_P1_14) },
16+
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_P1_15) },
17+
1518
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
1619
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
1720

0 commit comments

Comments
 (0)