Last active
October 25, 2017 14:47
-
-
Save stevelord/cb277af077801ec7b651517b4cbf2755 to your computer and use it in GitHub Desktop.
Light Sensor HIDIOT Code
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
#include <DigiKeyboard.h> | |
int ldrStatus = 0; | |
void setup(){ | |
} | |
void loop(){ | |
DigiKeyboard.sendKeyStroke(0); | |
ldrStatus = analogRead(A1); | |
DigiKeyboard.println(ldrStatus); | |
DigiKeyboard.delay(3000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment