Skip to content

Instantly share code, notes, and snippets.

@H3wastooshort
Created April 4, 2019 15:01
Show Gist options
  • Save H3wastooshort/5fb69d04bd2eec283fca0a5194b4b6b3 to your computer and use it in GitHub Desktop.
Save H3wastooshort/5fb69d04bd2eec283fca0a5194b4b6b3 to your computer and use it in GitHub Desktop.
#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