Skip to content

Commit

Permalink
update AtomS3R Cam example fixed first time init fail log
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitshaoxiang committed Sep 27, 2024
1 parent 1b72156 commit 52dd1b4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions examples/Basics/camera/camera.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@
* SPDX-License-Identifier: MIT
*/

#include "M5AtomS3.h"
/**
* @file camera.ino
* @brief M5AtomS3R Cam Web Server
* @version 1.0
* @date 2024-09-27
*
*
* @Hardwares: M5AtomS3R Cam
* @Platform Version: Arduino M5Stack Board Manager v2.1.2
*/

#include "camera_pins.h"
#include <WiFi.h>
#include "esp_camera.h"
Expand Down Expand Up @@ -58,7 +68,7 @@ void setup() {
Serial.begin(115200);
pinMode(POWER_GPIO_NUM, OUTPUT);
digitalWrite(POWER_GPIO_NUM, LOW);

delay(500);
esp_err_t err = esp_camera_init(&camera_config);
if (err != ESP_OK) {
Serial.println("Camera Init Fail");
Expand All @@ -67,6 +77,7 @@ void setup() {
} else {
Serial.println("Camera Init Success");
}
delay(100);

#ifdef STA_MODE

Expand Down

0 comments on commit 52dd1b4

Please sign in to comment.