Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:72680658bf08, committed 2014-12-30
- Comitter:
- alevelara
- Date:
- Tue Dec 30 18:17:12 2014 +0000
- Commit message:
- Servo move
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Servo.lib Tue Dec 30 18:17:12 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/Servo/#36b69a7ced07
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Dec 30 18:17:12 2014 +0000 @@ -0,0 +1,20 @@ +#include "mbed.h" +#include "Servo.h" + +Servo myServo(PB_9); +DigitalIn button(USER_BUTTON); + + +int main(){ + myServo.calibrate(0.0005,45.0); + + while(1){ + //While we press the user button, the servo turn right + if(!button){ + myServo.write(0.5); + } + } +} + + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Dec 30 18:17:12 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file