Created
April 4, 2019 15:01
-
-
Save H3wastooshort/5fb69d04bd2eec283fca0a5194b4b6b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#include <DigiKeyboardDe.h> | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(0, INPUT); | |
pinMode(1, INPUT); | |
pinMode(5, INPUT); | |
DigiKeyboardDe.delay(1); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
if (digitalRead(0 == HIGH)) { | |
DigiKeyboardDe.print("0"); | |
DigiKeyboardDe.delay(1000); | |
} | |
if (digitalRead(1 == HIGH)) { | |
DigiKeyboardDe.print("1"); | |
DigiKeyboardDe.delay(1000); | |
} | |
DigiKeyboardDe.delay(1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment