Skip to content

Commit ba22fc8

Browse files
authored
Merge pull request #9255 from CDarius/cores3_camera
Fix for M5Stack Cores3 camera
2 parents f67a4ad + c80a2cd commit ba22fc8

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

ports/espressif/boards/m5stack_cores3/board.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ static bool axp2101_init(busio_i2c_obj_t *i2c) {
114114
int rc;
115115
uint8_t write_buf[2];
116116

117-
// 0x90 = 0b1011_1001 // LDOS ON/OFF control 0
117+
// 0x90 = 0b1011_1111 // LDOS ON/OFF control 0
118118
write_buf[0] = 0x90;
119-
write_buf[1] = 0b10111001;
119+
write_buf[1] = 0b10111111;
120120
rc = common_hal_busio_i2c_write(i2c, AXP2101_I2C_ADDRESS, write_buf, sizeof(write_buf));
121121
if (rc != 0) {
122122
return false;
@@ -146,7 +146,7 @@ static bool axp2101_init(busio_i2c_obj_t *i2c) {
146146
return false;
147147
}
148148

149-
// 0x95, 0x1C // ALDO3 set to 3.3v for TF card slot
149+
// 0x95, 0x1C // ALDO4 set to 3.3v for TF card slot
150150
write_buf[0] = 0x95;
151151
write_buf[1] = 0x1C;
152152
rc = common_hal_busio_i2c_write(i2c, AXP2101_I2C_ADDRESS, write_buf, sizeof(write_buf));

ports/espressif/boards/m5stack_cores3/sdkconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
CONFIG_LWIP_LOCAL_HOSTNAME="m5stack-cores3"
1111
# end of LWIP
1212

13+
#
14+
# Camera configuration
15+
#
16+
CONFIG_GC0308_SUPPORT=y
17+
CONFIG_GC_SENSOR_SUBSAMPLE_MODE=y
18+
# end of Camera configuration
19+
1320
# end of Component config
1421

1522
# end of Espressif IoT Development Framework Configuration

0 commit comments

Comments
 (0)