Skip to content

Commit 1eb8822

Browse files
added SCL and SDA
1 parent 0c0b927 commit 1eb8822

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

ports/espressif/boards/waveshare_esp32_s3_pico/mpconfigboard.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@
3333

3434
#define DEFAULT_UART_BUS_RX (&pin_GPIO44)
3535
#define DEFAULT_UART_BUS_TX (&pin_GPIO43)
36+
37+
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO18)
38+
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO17)

ports/espressif/boards/waveshare_esp32_s3_pico/pins.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
3838

3939
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_GPIO11) },
4040
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_GPIO12) },
41-
41+
4242
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
43+
44+
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_GPIO18) },
45+
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_GPIO17) },
46+
47+
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
48+
49+
4350
};
4451
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

0 commit comments

Comments
 (0)