Skip to content

Instantly share code, notes, and snippets.

@georgeredinger
Created January 13, 2013 20:11
Show Gist options
  • Save georgeredinger/4525945 to your computer and use it in GitHub Desktop.
Save georgeredinger/4525945 to your computer and use it in GitHub Desktop.
void setup () {
Serial.begin(57600);
Serial.println("\n[lipoVolt]");
}
void loop () {
int millivolt = map(analogRead(6), 0, 1023, 0, 6600);
Serial.println(millivolt);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment