![](/media/cache/profiles/Chris_Profile_Pic_kyGJjzP.jpg.50x50_q85.jpg)
This program uses the potentiometers to set the servo positions. Note that it will need additional power (6v) that can be supplied through the 1.3mm tip-positive DC conenctor
Revision 0:d1fc4eddceab, committed 2012-10-15
- Comitter:
- chris
- Date:
- Mon Oct 15 12:43:06 2012 +0000
- Commit message:
- First commit
Changed in this revision
diff -r 000000000000 -r d1fc4eddceab Servo.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Servo.lib Mon Oct 15 12:43:06 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/Servo/#36b69a7ced07
diff -r 000000000000 -r d1fc4eddceab main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Oct 15 12:43:06 2012 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "Servo.h" + +Servo s1(p21); +Servo s2(p22); + +AnalogIn p1(p19); +AnalogIn p2(p20); + +int main() { + while(1) { + s1=p1; + s2=p2; + wait(0.1); + } +}
diff -r 000000000000 -r d1fc4eddceab mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Oct 15 12:43:06 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc \ No newline at end of file