PWM waveform is not output when analogWrite() is called. #8
Labels
applies-to-v1.3.1
applies-to-v2.0.0
applies-to-v2.1.0
applies-to-v2.2.0
applies-to-v2.3.0
applies-to-v2.3.1
bug
Something isn't working
■ Corresponding version
v.2.0.0 to v.2.3.1
■ API function affected by defect
■ Contents and Occurrence conditions
Depending on the pin specified by analogRead(), an illegal write occurs to the RAM referenced by analogWrite()
As a result, PWM waveform is not output when analogWrite() is called
The conditions for this to occur are as follows:
The problematic combination patterns are as follows:
■ Workaround
This issue can be avoided by calling the pinMode(OUTPUT) before calling the analogWrite()
Below is the code that works around this issue
■ Permanent measures
Scheduled to be fixed in V2.3.2
The text was updated successfully, but these errors were encountered: