Skip to content

Instantly share code, notes, and snippets.

@ugeugeHigh ugeugeHigh/ECMRead.ino
Last active Jan 30, 2019

Embed
What would you like to do?
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
You can’t perform that action at this time.