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.
main.cpp
00001 // Hello World to sweep a servo through its full range 00002 00003 #include "mbed.h" 00004 #include "Servo.h" 00005 00006 Servo myservo(PB_3); 00007 00008 int main() { 00009 while(1){ 00010 for(float p=0; p<1.0; p += 0.1) { 00011 myservo = p;//P representa el porcentaje de movimiento. Si el servo se mueve 180° y p es 0.5; querra decir 50%; osea 90° 00012 wait(0.2); 00013 } 00014 } 00015 }
Generated on Fri Jul 22 2022 09:16:36 by
1.7.2