Created
May 7, 2017 05:57
-
-
Save canadaduane/e15acda5b7ef91aa53476a1dd2ec1da6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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