-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Update core_esp8266_wiring_analog.c #443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
analogRead bugfix
Maybe here is the place to actually use analogReference and make it switch between vdd and tout. |
Also to point out, system_get_vdd33 does return a good clean analog reading of the TOUT pin. The fact that you needed to change it needs resolving, because changing it here will break it for me, so needs to e made to work properly in a different way. |
@me-no-dev but, like i described befoure the TOUT can be used for only one think, VDD mesaurement OR analogRead. The way for choose this is changing and uploading the init bin file whit the right value on it (33 for analogread and 255 for VddRead). My pullrequest is only for analogRead problem, and it work. Only after the init bin file uploading function added to this core we can have a good readVdd function. For the analogReference also is there two way that we can choose, whitout the argument it is unusefull, so what you prefer ? I prefer have an error during compilation instead of a good compilation but no clear/working analogReference function. @igrr is it very difficult adding the init bin file uploading ? this is the real solution and we can create a final version of core_esp8266_wiring_analog.c file. |
@me-no-dev This is a common error, the official SDK documentation is clear, the system_get_vdd33 does NOT return the analog read on TOUT. |
will this not work for the init bin problem? |
This is good, so igrr start to work on probkem :-) But for now the init bin file is not uploaded, so we must wait fir this to work |
With the change in 1803f30 it is not necessary to upload the init bin file. Init data is created in code and passed directly to PHY init function. What you have in flash no longer matters. |
ok this is very good. |
Update core_esp8266_wiring_analog.c
analogRead bugfix discussed here:
#338