Skip to content

Instantly share code, notes, and snippets.

@canadaduane
Created May 7, 2017 05:57
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 canadaduane/e15acda5b7ef91aa53476a1dd2ec1da6 to your computer and use it in GitHub Desktop.
Save canadaduane/e15acda5b7ef91aa53476a1dd2ec1da6 to your computer and use it in GitHub Desktop.
const int rstPin = 7;
void setup() {
pinMode(rstPin, OUTPUT);
// DDRD |= (1 << PD7);
}
void loop() {
// RESET pin goes HIGH
digitalWrite(rstPin, HIGH);
delay(100);
// Then send LOW / HIGH to reset
digitalWrite(rstPin, LOW);
delayMicroseconds(1000);
digitalWrite(rstPin, HIGH);
delay(10);
// Try again in 10 seconds
delay(10000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment