Arduino Sketch
1 2 3 4 5 6 7 8 9 10 11 12 13 | // Source: https://github.com/esp8266/Arduino/issues/3800 ADC_MODE(ADC_VCC); void setup() { Serial.begin(115200); } void loop() { int vcc = ESP.getVcc(); Serial.println(vcc); delay(1000); } |
This blog is for keeping my study notes, sharing knowledge and showing the products of my study.. I welcome your feedback...
1 2 3 4 5 6 7 8 9 10 11 12 13 | // Source: https://github.com/esp8266/Arduino/issues/3800 ADC_MODE(ADC_VCC); void setup() { Serial.begin(115200); } void loop() { int vcc = ESP.getVcc(); Serial.println(vcc); delay(1000); } |