a
Dependents: 3servotest 1stcomp 3rdcompfixstart 2ndcomp ... more
Fork of Servo by
Diff: servo.cpp
- Revision:
- 2:442fae3b1c0e
- Parent:
- 1:c8ecfd809e22
diff -r c8ecfd809e22 -r 442fae3b1c0e servo.cpp --- a/servo.cpp Wed Sep 07 09:40:58 2016 +0000 +++ b/servo.cpp Thu Sep 08 03:35:24 2016 +0000 @@ -47,7 +47,7 @@ degree=175; i=500+degree*1900/180; - pwmhand.pulsewidth_us(i); + pwmhand.write(i/PERIOD); }