![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
test
Diff: main.cpp
- Revision:
- 48:4ac030bc2910
- Parent:
- 47:70468e4f985f
- Child:
- 49:6ebde58afad3
--- a/main.cpp Sun Jun 02 09:32:45 2019 +0000 +++ b/main.cpp Sun Jun 02 09:52:57 2019 +0000 @@ -54,11 +54,23 @@ { + for (int i=MAX; i>MIN; i=i-10) + { + myServo.pulsewidth_us(i); //NB in microseconds + wait_ms(25); + } - myServo.pulsewidth_us(MIN); //NB in microseconds - wait(2); - myServo.pulsewidth_us(MAX); //NB in microseconds - wait(0.1); + for (int i=MIN; i<MAX; i=i+10) + { + myServo.pulsewidth_us(i); //NB in microseconds + wait_ms(25); + } + + // wait(1); + + + + }