Skip to content

Commit

Permalink
Revert "Disabling MotionDetection to fit marauder 1.0.0"
Browse files Browse the repository at this point in the history
This reverts commit ff134a9.
  • Loading branch information
eried committed Sep 19, 2024
1 parent 638cef1 commit 8c1ca3e
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions esp32cam_marauder/MotionDetection.ino
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// Using EloquentEsp32cam library
//#include <eloquent_esp32cam.h>
//#include <eloquent_esp32cam/motion/detection.h>
#include <eloquent_esp32cam.h>
#include <eloquent_esp32cam/motion/detection.h>

/*using eloq::camera;
using eloq::motion::detection;*/
using eloq::camera;
using eloq::motion::detection;

void motion_detection_setup() {
/*camera.pinout.aithinker();
camera.pinout.aithinker();
camera.brownout.disable();
camera.resolution.vga();
camera.quality.high();
Expand All @@ -30,15 +30,14 @@ void motion_detection_setup() {
Serial.println(camera.exception.toString());

Serial.println("Camera OK");
Serial.println("Awaiting for motion...");*/
Serial.println("Motion detection not available.");
Serial.println("Awaiting for motion...");
}

//unsigned long nextMotionAlert = 0;
unsigned long nextMotionAlert = 0;

void motion_detection_loop() {
// capture picture
/*if (!camera.capture().isOk()) {
if (!camera.capture().isOk()) {
Serial.println(camera.exception.toString());
return;
}
Expand All @@ -54,5 +53,5 @@ void motion_detection_loop() {

Serial.println("Motion!");
nextMotionAlert = millis()+1000;
}*/
}
}

0 comments on commit 8c1ca3e

Please # to comment.