Initial, very basic version of Kitchen PIR
This commit is contained in:
14
src/main.cpp
14
src/main.cpp
@@ -63,6 +63,7 @@ void setup() {
|
||||
Serial.println("Telegram OK");
|
||||
|
||||
pinMode(4,OUTPUT);
|
||||
//pinMode(33,OUTPUT);
|
||||
Serial.println("Awaiting for motion...");
|
||||
}
|
||||
|
||||
@@ -88,7 +89,7 @@ void loop() {
|
||||
camera.getSizeInBytes()
|
||||
);
|
||||
|
||||
/*Serial.println("Taking photo of motion at higher resolution");
|
||||
/* Serial.println("Taking photo of motion at higher resolution");
|
||||
// Maximum Resolution I can send via telegram is SVGA
|
||||
camera.resolution.at(FRAMESIZE_SVGA, []() {
|
||||
Serial.printf(
|
||||
@@ -96,8 +97,8 @@ void loop() {
|
||||
camera.resolution.getWidth(),
|
||||
camera.resolution.getHeight(),
|
||||
camera.resolution.benchmark.millis()
|
||||
);
|
||||
*/
|
||||
); */
|
||||
|
||||
// capture new frame
|
||||
Serial.println("Capturing Frame");
|
||||
digitalWrite(4,HIGH);
|
||||
@@ -105,8 +106,8 @@ void loop() {
|
||||
Serial.println(camera.exception.toString());
|
||||
return;
|
||||
}
|
||||
digitalWrite(4,LOW);
|
||||
|
||||
digitalWrite(4,LOW);
|
||||
|
||||
// send text to telegram
|
||||
/* Serial.println("Sending Text to Telegram");
|
||||
String text="TEST";
|
||||
@@ -129,7 +130,8 @@ void loop() {
|
||||
Serial.println(telegram.exception.toString());
|
||||
} */
|
||||
|
||||
/* });
|
||||
/* });
|
||||
Serial.println("Resolution switched back to VGA"); */
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user