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.
Fork of Motor_HelloWorld by
main.cpp
00001 // Sweep the motor speed from full-speed reverse (-1.0) to full speed forwards (1.0) 00002 00003 #include "mbed.h" 00004 #include "Motor.h" 00005 00006 Motor m(p23, p6, p5); // pwm, fwd, rev 00007 00008 int main() { 00009 for (float s= -1.0; s < 1.0 ; s += 0.01) { 00010 m.speed(s); 00011 wait(0.02); 00012 } 00013 }
Generated on Thu Jul 14 2022 23:31:05 by
1.7.2
