We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15fde31 commit 5df0336Copy full SHA for 5df0336
libraries/MonSens/MonSens_ESP8266.h
@@ -30,6 +30,11 @@
30
#ifndef MONSENS_ESP8266_H
31
#define MONSENS_ESP8266_H
32
33
+// needs to be set before including the ESP libraries
34
+#ifdef MONSENS_ESP8266_VCC_H
35
+ ADC_MODE(ADC_VCC);
36
+#endif
37
+
38
#include <MonSens.h>
39
#include <ESP8266WiFi.h>
40
libraries/MonSens/MonSens_ESP8266_Vcc.h
@@ -31,10 +31,6 @@
-/* as of Arduino IDE 1.6.8, the below sequence doesn't work:
-ADC_MODE(ADC_VCC);
-*/
-
/**
* MonSens implementation for a Photoresistor
*/
0 commit comments