Skip to content

Instantly share code, notes, and snippets.

@nishanc
Created May 15, 2021 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishanc/15d06a281e40ced114ef3527e52edd52 to your computer and use it in GitHub Desktop.
Save nishanc/15d06a281e40ced114ef3527e52edd52 to your computer and use it in GitHub Desktop.
void loop() {
current_millis = millis();
if (current_millis - last_capture_millis > capture_interval) { // Take another picture
last_capture_millis = millis();
save_photo();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment