Astrid Schut
/
Servo_JERRY
JEEREEEY
Fork of Servo_HelloWorld by
Revision 2:594f44b3bdb3, committed 2018-11-01
- Comitter:
- aschut
- Date:
- Thu Nov 01 20:47:49 2018 +0000
- Parent:
- 1:40d2fd0b99e6
- Commit message:
- clclclclick
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Nov 23 16:10:35 2010 +0000 +++ b/main.cpp Thu Nov 01 20:47:49 2018 +0000 @@ -3,11 +3,19 @@ #include "mbed.h" #include "Servo.h" -Servo myservo(p21); +Servo myservo(A5); -int main() { - for(float p=0; p<1.0; p += 0.1) { +void Clicker() +{ +for(float p=1; p>0; p -= 0.1) + { myservo = p; - wait(0.2); + wait(0.1); + } + } + +int main() +{ + Clicker(); } -} +
--- a/mbed.bld Tue Nov 23 16:10:35 2010 +0000 +++ b/mbed.bld Thu Nov 01 20:47:49 2018 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e +https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187 \ No newline at end of file