Skip to content

Commit 12d5222

Browse files
liebmanearlephilhower
authored andcommitted
pin 16 is allowed for analogWrite (#4895)
1 parent 87991ab commit 12d5222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/core_esp8266_wiring_pwm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extern void __analogWriteFreq(uint32_t freq) {
4646
}
4747

4848
extern void __analogWrite(uint8_t pin, int val) {
49-
if (pin >= 16) {
49+
if (pin > 16) {
5050
return;
5151
}
5252
uint32_t analogPeriod = 1000000L / analogFreq;

0 commit comments

Comments
 (0)