Moderator: igrr
https://github.com/esp8266/Arduino/commit/09bb75874deb95c22b4c09e63b842fc1f89eebc3
I think this may be the reason why my ESP8266 ADC pin can read to supply voltage . So much for the 1V supporters . Better move yourself to Arduino IDE
tytower wrote:The analog read function has been tweaked in Arduino IDE here
https://github.com/esp8266/Arduino/commit/09bb75874deb95c22b4c09e63b842fc1f89eebc3
I think this may be the reason why my ESP8266 ADC pin can read to supply voltage . So much for the 1V supporters . Better move yourself to Arduino IDE
Not at all. They just replaced doing stuff themselves with a SDK library method.
I took a short look at it but found it as complicated as the original arduino code and didn't tried to understand it.
You can use that SDK function easily yourself.
Cal
extern "C" {
#include "user_interface.h"
}
uint LDR_Value = 0; //Value of LDR (ADC)
LDR_Value=system_adc_read();
Code is only the fragments you need. Not a running program. But with this, I get reliable values from the ADC. Arduino IDE is 1.6.4.
Greetz, Bernd