Last active
April 28, 2020 09:32
-
-
Save odolezal/22b855ad9460bfaeb5fa6de7e075cdef to your computer and use it in GitHub Desktop.
ESP8266 Internal input voltage reading
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
// 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