Skip to content

Commit 6266bbc

Browse files
committed
fix(esp32): Better flash duration
Previously, the photo was taken before the flash reached maximum brightness so instead of sharp, white image, it was a poorly lit, green tinted one. This fixes that, at a cost of very slightly increased power consumption.
1 parent 452bdca commit 6266bbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

esp32/m5stack_timer_camera_x.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ WiFiClient connectToWiFi() {
118118
}
119119

120120
bool sendImage(WiFiClient wifi) {
121-
unit_flash_set_brightness(1);
122-
delay(100);
121+
unit_flash_set_brightness(9);
122+
delay(300);
123123
if (!TimerCAM.Camera.get()) {
124124
unit_flash_set_brightness(0);
125125
Serial.println("Could not get camera");

0 commit comments

Comments
 (0)