We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
In the versions above 2.6.3 the analogWrite function works with 8 bit resolution instead 10 bit.
analogWrite
Using the code below you will get 3.3 V instead 1.61 V on output.
#include "Arduino.h" const int LED_PIN = D7; const int PWM_VALUE = 500; void setup() { pinMode(LED_PIN, OUTPUT); analogWrite(LED_PIN, PWM_VALUE); } void loop() { }
Here some pics showing the problem.
Code:
Platformio.ini using v3.2.0:
Oscilloscope measurements:
Platformio.ini using v2.6.3
Best regards.
The text was updated successfully, but these errors were encountered:
See esp8266/Arduino#7456 and esp8266/Arduino#2895 Notice that this repo is for PlatformIO-specific build tools, Arduino Core related issues and it's development are at https://github.com/esp8266/Arduino
Sorry, something went wrong.
Thanks you very much for the info. Sorry by post the issue in wrong place.
No branches or pull requests
Hi!
In the versions above 2.6.3 the
analogWrite
function works with 8 bit resolution instead 10 bit.Using the code below you will get 3.3 V instead 1.61 V on output.
Here some pics showing the problem.
Code:
Platformio.ini using v3.2.0:
Oscilloscope measurements:
Platformio.ini using v2.6.3
Oscilloscope measurements:
Best regards.
The text was updated successfully, but these errors were encountered: