Skip to content

Instantly share code, notes, and snippets.

@odolezal
Last active April 28, 2020 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odolezal/22b855ad9460bfaeb5fa6de7e075cdef to your computer and use it in GitHub Desktop.
Save odolezal/22b855ad9460bfaeb5fa6de7e075cdef to your computer and use it in GitHub Desktop.
ESP8266 Internal input voltage reading
// Define input Vcc reading
ADC_MODE(ADC_VCC);
// ESP8266 Internal input voltage reading
float vccIn = ESP.getVcc() / 1000.0;
Serial.print("Input voltage (V): ");
Serial.println(vccIn);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment