Skip to content

Commit 8583b97

Browse files
committed
Add yield to example, rename .ino
Renamed examples to .ino. Added yield to pwmtest for ESP8266. I don’t have a problem without it, but have had at least one report of watchdog timeouts.
1 parent 309dfa1 commit 8583b97

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

examples/pwmtest/pwmtest.pde renamed to examples/pwmtest/pwmtest.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ void setup() {
5454
void loop() {
5555
// Drive each PWM in a 'wave'
5656
for (uint16_t i=0; i<4096; i += 8) {
57+
#ifdef ESP8266
58+
yield();
59+
#endif
5760
for (uint8_t pwmnum=0; pwmnum < 16; pwmnum++) {
5861
pwm.setPWM(pwmnum, 0, (i + (4096/16)*pwmnum) % 4096 );
5962
}
File renamed without changes.

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit PWM Servo Driver Library
2-
version=1.0.0
2+
version=1.0.1
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Adafruit PWM Servo Driver Library

0 commit comments

Comments
 (0)