Skip to content

Instantly share code, notes, and snippets.

@stevelord
Last active October 25, 2017 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevelord/cb277af077801ec7b651517b4cbf2755 to your computer and use it in GitHub Desktop.
Save stevelord/cb277af077801ec7b651517b4cbf2755 to your computer and use it in GitHub Desktop.
Light Sensor HIDIOT Code
#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