erropix / ESP32_AnalogWrite

Provides an analogWrite polyfill for ESP32 using the LEDC functions
MIT License
159 stars 36 forks source link

fix analogWrite max value not equal maximal duty #9

Closed vanvuongngo closed 9 months ago

vanvuongngo commented 4 years ago

The default levels is 2^13 =8192. When you set a maximal value of 255 then the duty is only 8160 and you can see that the build-in LED is not totally power off.

vanvuongngo commented 4 years ago

Please T&V