Skip to content

Commit c09a4f9

Browse files
authored
Merge pull request adafruit#8838 from bill88t/fbs3-i2c
Correct Firebeetle 2 ESP32-S3's I2C
2 parents b2c7e14 + f4c21fe commit c09a4f9

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

ports/espressif/boards/firebeetle2_esp32s3/mpconfigboard.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@
2727
#define MICROPY_HW_BOARD_NAME "DFRobot FireBeetle 2 ESP32-S3"
2828
#define MICROPY_HW_MCU_NAME "ESP32S3"
2929

30-
#define CIRCUITPY_BOARD_I2C (2)
31-
#define CIRCUITPY_BOARD_I2C_PIN {{.scl = &pin_GPIO2, .sda = &pin_GPIO3}, \
32-
{.scl = &pin_GPIO2, .sda = &pin_GPIO1}}
30+
#define CIRCUITPY_BOARD_I2C (1)
31+
#define CIRCUITPY_BOARD_I2C_PIN {{.scl = &pin_GPIO2, .sda = &pin_GPIO1}}
3332

3433
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO17)
3534
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO15)

ports/espressif/boards/firebeetle2_esp32s3/pins.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#include "shared-bindings/board/__init__.h"
33
#include "shared-module/displayio/__init__.h"
44

5-
CIRCUITPY_BOARD_BUS_SINGLETON(cam_i2c, i2c, 1) // Camera sensor
6-
75
STATIC const mp_rom_obj_tuple_t camera_data_tuple = {
86
// The order matters.
97
// They must be ordered from low to high (Y2, Y3 .. Y9).
@@ -43,9 +41,8 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
4341
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_GPIO2) },
4442

4543
{ MP_ROM_QSTR(MP_QSTR_IO1), MP_ROM_PTR(&pin_GPIO1) },
46-
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_GPIO3) },
44+
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_GPIO1) },
4745

48-
// I2C cannot be used when CAM_I2C is in use.
4946
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
5047

5148
{ MP_ROM_QSTR(MP_QSTR_IO0), MP_ROM_PTR(&pin_GPIO0) },
@@ -118,7 +115,5 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
118115
{ MP_ROM_QSTR(MP_QSTR_CAM_HREF), MP_ROM_PTR(&pin_GPIO42)},
119116
{ MP_ROM_QSTR(MP_QSTR_CAM_PCLK), MP_ROM_PTR(&pin_GPIO5) },
120117
{ MP_ROM_QSTR(MP_QSTR_CAM_XCLK), MP_ROM_PTR(&pin_GPIO45)},
121-
122-
{ MP_ROM_QSTR(MP_QSTR_CAM_I2C), MP_ROM_PTR(&board_cam_i2c_obj)},
123118
};
124119
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);

0 commit comments

Comments
 (0)