Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Continuously read out the JeeNode USB voltage of the LiPo battery
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