Skip to content

Commit 52dd1b4

Browse files
committed
update AtomS3R Cam example fixed first time init fail log
1 parent 1b72156 commit 52dd1b4

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

examples/Basics/camera/camera.ino

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@
44
* SPDX-License-Identifier: MIT
55
*/
66

7-
#include "M5AtomS3.h"
7+
/**
8+
* @file camera.ino
9+
* @brief M5AtomS3R Cam Web Server
10+
* @version 1.0
11+
* @date 2024-09-27
12+
*
13+
*
14+
* @Hardwares: M5AtomS3R Cam
15+
* @Platform Version: Arduino M5Stack Board Manager v2.1.2
16+
*/
17+
818
#include "camera_pins.h"
919
#include <WiFi.h>
1020
#include "esp_camera.h"
@@ -58,7 +68,7 @@ void setup() {
5868
Serial.begin(115200);
5969
pinMode(POWER_GPIO_NUM, OUTPUT);
6070
digitalWrite(POWER_GPIO_NUM, LOW);
61-
71+
delay(500);
6272
esp_err_t err = esp_camera_init(&camera_config);
6373
if (err != ESP_OK) {
6474
Serial.println("Camera Init Fail");
@@ -67,6 +77,7 @@ void setup() {
6777
} else {
6878
Serial.println("Camera Init Success");
6979
}
80+
delay(100);
7081

7182
#ifdef STA_MODE
7283

0 commit comments

Comments
 (0)