Last active
January 30, 2019 10:54
-
-
Save ugeugeHigh/3fb7c73aabf0e2503050c0c26e048f51 to your computer and use it in GitHub Desktop.
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
void setup() { | |
Serial.begin(115200); | |
} | |
void loop() { | |
int val = analogRead(A5); | |
int out = map(val,0,1023,0,255); | |
Serial.write(out); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment