Add flash...
This commit is contained in:
@@ -62,6 +62,7 @@ void setup() {
|
|||||||
|
|
||||||
Serial.println("Telegram OK");
|
Serial.println("Telegram OK");
|
||||||
|
|
||||||
|
pinMode(4,OUTPUT);
|
||||||
Serial.println("Awaiting for motion...");
|
Serial.println("Awaiting for motion...");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,10 +106,12 @@ void loop() {
|
|||||||
|
|
||||||
// capture new frame
|
// capture new frame
|
||||||
Serial.println("Capturing Frame");
|
Serial.println("Capturing Frame");
|
||||||
|
digitalWrite(4,HIGH);
|
||||||
if (!camera.capture().isOk()) {
|
if (!camera.capture().isOk()) {
|
||||||
Serial.println(camera.exception.toString());
|
Serial.println(camera.exception.toString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
digitalWrite(4,LOW);
|
||||||
|
|
||||||
Serial.printf(
|
Serial.printf(
|
||||||
"Frame size is now %d bytes\n",
|
"Frame size is now %d bytes\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user