Meike Froklage
/
ServoMotor
Code ServoMotor
Fork of Servo_HelloWorld by
Revision 2:e917f9bc829b, committed 2016-10-14
- Comitter:
- meikefrok
- Date:
- Fri Oct 14 13:19:46 2016 +0000
- Parent:
- 1:40d2fd0b99e6
- Commit message:
- Doesn't work;
Changed in this revision
diff -r 40d2fd0b99e6 -r e917f9bc829b Servo.lib --- a/Servo.lib Tue Nov 23 16:10:35 2010 +0000 +++ b/Servo.lib Fri Oct 14 13:19:46 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/simon/code/Servo/#36b69a7ced07 +http://developer.mbed.org/users/simon/code/Servo/#36b69a7ced07
diff -r 40d2fd0b99e6 -r e917f9bc829b main.cpp --- a/main.cpp Tue Nov 23 16:10:35 2010 +0000 +++ b/main.cpp Fri Oct 14 13:19:46 2016 +0000 @@ -1,13 +1,13 @@ -// Hello World to sweep a servo through its full range #include "mbed.h" #include "Servo.h" -Servo myservo(p21); +Servo myservo(D8); int main() { - for(float p=0; p<1.0; p += 0.1) { - myservo = p; - wait(0.2); - } + // for(float p=0; p<1.0; p += 0.1) { + // myservo = p; + // wait(0.2); + myservo = 0.5; } +
diff -r 40d2fd0b99e6 -r e917f9bc829b mbed.bld --- a/mbed.bld Tue Nov 23 16:10:35 2010 +0000 +++ b/mbed.bld Fri Oct 14 13:19:46 2016 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e +http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3 \ No newline at end of file