Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By Tawhiz20
#20613 I have found core_esp8266_wiring_analog.c which describes the analogRead-function... but how do I use the other function to correct the error??
User avatar
By tytower
#20615 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
User avatar
By cal
#20662
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
User avatar
By bernd331
#21031 Sorry for the long time to answer. Here are my promised solution to get reliable analog read values from an LDR.

Code: Select allextern "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