Skip to content

Commit 0d98799

Browse files
authored
Update pins.c
I added missing pins and made the naming of the camera and microphone pins clearer.
1 parent f3dc89d commit 0d98799

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

  • ports/espressif/boards/seeed_xiao_esp32_s3_sense

ports/espressif/boards/seeed_xiao_esp32_s3_sense/pins.c

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,24 +26,28 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
2626
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_GPIO8) },
2727
{ MP_ROM_QSTR(MP_QSTR_D10), MP_ROM_PTR(&pin_GPIO9) },
2828
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_GPIO9) },
29-
{ MP_ROM_QSTR(MP_QSTR_XCLK), MP_ROM_PTR(&pin_GPIO10) },
30-
{ MP_ROM_QSTR(MP_QSTR_Y8), MP_ROM_PTR(&pin_GPIO11) },
31-
{ MP_ROM_QSTR(MP_QSTR_Y7), MP_ROM_PTR(&pin_GPIO12) },
32-
{ MP_ROM_QSTR(MP_QSTR_PCLK), MP_ROM_PTR(&pin_GPIO13) },
33-
{ MP_ROM_QSTR(MP_QSTR_Y6), MP_ROM_PTR(&pin_GPIO14) },
34-
{ MP_ROM_QSTR(MP_QSTR_Y2), MP_ROM_PTR(&pin_GPIO15) },
35-
{ MP_ROM_QSTR(MP_QSTR_Y5), MP_ROM_PTR(&pin_GPIO16) },
36-
{ MP_ROM_QSTR(MP_QSTR_Y3), MP_ROM_PTR(&pin_GPIO17) },
37-
{ MP_ROM_QSTR(MP_QSTR_Y4), MP_ROM_PTR(&pin_GPIO18) },
29+
{ MP_ROM_QSTR(MP_QSTR_CAM_XCLK), MP_ROM_PTR(&pin_GPIO10) },
30+
{ MP_ROM_QSTR(MP_QSTR_CAM_D7), MP_ROM_PTR(&pin_GPIO48) },
31+
{ MP_ROM_QSTR(MP_QSTR_CAM_HREF), MP_ROM_PTR(&pin_GPIO37) },
32+
{ MP_ROM_QSTR(MP_QSTR_CAM_D6), MP_ROM_PTR(&pin_GPIO11) },
33+
{ MP_ROM_QSTR(MP_QSTR_CAM_D5), MP_ROM_PTR(&pin_GPIO12) },
34+
{ MP_ROM_QSTR(MP_QSTR_CAM_PCLK), MP_ROM_PTR(&pin_GPIO13) },
35+
{ MP_ROM_QSTR(MP_QSTR_CAM_D4), MP_ROM_PTR(&pin_GPIO14) },
36+
{ MP_ROM_QSTR(MP_QSTR_CAM_D0), MP_ROM_PTR(&pin_GPIO15) },
37+
{ MP_ROM_QSTR(MP_QSTR_CAM_D3), MP_ROM_PTR(&pin_GPIO16) },
38+
{ MP_ROM_QSTR(MP_QSTR_CAM_D1), MP_ROM_PTR(&pin_GPIO17) },
39+
{ MP_ROM_QSTR(MP_QSTR_CAM_D2), MP_ROM_PTR(&pin_GPIO18) },
3840
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_GPIO21) },
3941
{ MP_ROM_QSTR(MP_QSTR_SDCS), MP_ROM_PTR(&pin_GPIO21) },
40-
{ MP_ROM_QSTR(MP_QSTR_VSYNC), MP_ROM_PTR(&pin_GPIO38) },
42+
{ MP_ROM_QSTR(MP_QSTR_CAM_VSYNC), MP_ROM_PTR(&pin_GPIO38) },
4143
{ MP_ROM_QSTR(MP_QSTR_MTCK), MP_ROM_PTR(&pin_GPIO39) },
44+
{ MP_ROM_QSTR(MP_QSTR_CAM_SCL), MP_ROM_PTR(&pin_GPIO39) },
4245
{ MP_ROM_QSTR(MP_QSTR_MTDO), MP_ROM_PTR(&pin_GPIO40) },
43-
{ MP_ROM_QSTR(MP_QSTR_I2S_MIC), MP_ROM_PTR(&pin_GPIO41) },
46+
{ MP_ROM_QSTR(MP_QSTR_CAM_SDA), MP_ROM_PTR(&pin_GPIO40) },
47+
{ MP_ROM_QSTR(MP_QSTR_MIC_DATA), MP_ROM_PTR(&pin_GPIO41) },
4448
{ MP_ROM_QSTR(MP_QSTR_MTDI), MP_ROM_PTR(&pin_GPIO41) },
4549
{ MP_ROM_QSTR(MP_QSTR_MTMS), MP_ROM_PTR(&pin_GPIO42) },
46-
{ MP_ROM_QSTR(MP_QSTR_I2S_FS), MP_ROM_PTR(&pin_GPIO42) },
50+
{ MP_ROM_QSTR(MP_QSTR_MIC_CLK), MP_ROM_PTR(&pin_GPIO42) },
4751
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
4852
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
4953
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },

0 commit comments

Comments
 (0)