Skip to content

Instantly share code, notes, and snippets.

@stevelord
Created October 29, 2017 17: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/8816871bcba18df9f703218d7807b981 to your computer and use it in GitHub Desktop.
Save stevelord/8816871bcba18df9f703218d7807b981 to your computer and use it in GitHub Desktop.
HIDIOT EMF Detector sketch
unsigned int state = 0;
void setup(){
}
void loop(){
state = analogRead(A1);
state = constrain(state, 0, 100);
state = map(state, 0, 100, 0, 255);
analogWrite(PB1,state);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment