Skip to content

digitalWrite() doesn't override analogWrite() #447

Open
@JelmerT

Description

@JelmerT

Describe the bug
Once PWM is started on a pin with analogWrite(), the pin can't be set with digitalWrite() anymore.

Set up
NRF52840

To Reproduce
Steps to reproduce the behavior:

analogWrite(LED_GREEN,128);
digitalWrite(LED_GREEN,LOW);

Expected behavior
PWM on LED_GREEN goes to 50%, then pin goes low.
Actual behavior
-> pin stays at 50%

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions