You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
luc-github
changed the title
Add analog write like feature for direct pin support
Add analog read/write like feature for direct pin support
Feb 17, 2019
done : 99b892c
new parameters : ANALOG=NO ANALOG_RANGE=255 CLEARCHANNELS=NO
so by default if ANALOG=YES is not set, it is digital to keep backware compatibility
Default range is 255 which means 8 bits resolution, can be 1024 (10 bits) or other proper value, this value must be set at each call or default value is used
Default frequency use 1Mhz as I was not sure it would be useful to add a parameter for it CLEARCHANNELS=YES is only for ESP32 to reset pin/channel assignment
For ESP8266 as only 1 ADC, any pin number will work for Analog reading, for ESP32 there are up to 16 pins because 16 channels
I did not tested heavily as I am travelling but feel free to feedback
Analog write is not available in ESP32 but instead of use a external lib I plan to use the
ledcWrite
functionFor esp8266 - I need to check
The text was updated successfully, but these errors were encountered: