adafruit / adafruit/Adafruit_nRF52_Arduino
digitalWrite() doesn't override analogWrite()
Open
Bug
- Dominant language
- C
- Stars
- 699
- Forks
- 570
- PR merge metrics
- No merged PRs in 30d
Description
**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%
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.