Added some button handling to Digispark_Passkey and cleanups

This commit is contained in:
Johannes Findeisen 2022-11-28 00:41:26 +01:00
commit fae5de0bed
2 changed files with 43 additions and 10 deletions

View file

@ -1,4 +1,3 @@
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
@ -10,8 +9,8 @@ void setup() {
void loop() {
digitalWrite(0, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(1, HIGH);
delay(100); // wait for a second
delay(1000); // wait for a second
digitalWrite(0, LOW); // turn the LED off by making the voltage LOW
digitalWrite(1, LOW);
delay(100); // wait for a second
delay(1000); // wait for a second
}