Last active
June 13, 2016 21:14
-
-
Save chaeplin/d47c2de3c6d92513996cf0163aed531b to your computer and use it in GitHub Desktop.
ESP.getVcc.ino
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
extern "C" { | |
#include "user_interface.h" | |
} | |
ADC_MODE(ADC_VCC); | |
int vdd; | |
void setup() { | |
Serial.begin(115200); | |
while (!Serial) { | |
; | |
} | |
Serial.println(); | |
vdd = ESP.getVcc(); | |
Serial.println(vdd); | |
} | |
void loop() { | |
vdd = ESP.getVcc(); | |
Serial.println(vdd); | |
delay(5000); | |
} | |
/* | |
3207 | |
3206 | |
3208 | |
3208 | |
3229 | |
3212 | |
3230 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
3205
3206
3205
3206
3204
3204
3222
3204
3204
3203
3204
3226
3226
3226
3226
3227
3227
3208
3227
3228
3227
3227
3227
3208
3226
3229
3227
3227
3227
3208
3228
3227
3227
3227
3228
3208
3229
3229
3226
3227