Skip to content

pwm works only for min and max values in core 2.4.2 - works great in 2.4.1 #5140

@jplavoiemtl

Description

@jplavoiemtl

If you do a simple pwm analogWrite to a value beetween 0 or max=1023, the pwm output is not updated properly only in current release core 2.4.2. If using 0 or 1023 the pwm output is properly set. So only the intermediate values are affected by the bug.

Reverting back to core 2.4.1, it works fine the LED is properly varying intensity as per the proper pwm value. The problem is very easy to see on my end.

I use a WeMos D1 R2 & mini board and I see that in core 2.4.2 the board is now defined as LOLIN also so maybe the problem is related to that?

Code is simple and easy to reproduce and can be seen very easily on my LED. The LED is properly dimmed in previous core 2.4.1 with a pwmVal value let's say of 50. In core 2.4.2 it is not varying at all and only respond to the min pwmVal=0 or max pwmVal=1023 values thus showing the problem.

analogWrite(LED_Gpin, pwmVal)

Metadata

Metadata

Labels

waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions