Created
October 29, 2017 17:47
-
-
Save stevelord/8816871bcba18df9f703218d7807b981 to your computer and use it in GitHub Desktop.
HIDIOT EMF Detector sketch
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
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