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.
Dependencies: Motor_LockedAntiphase mbed
main.cpp
00001 #include "mbed.h" 00002 #include "motor_lockedantiphase.h" 00003 00004 PwmOut motora(PA_0); 00005 PwmOut motorb(PA_1); 00006 Motor_LockedAntiphase motor(motora,motorb); 00007 00008 DigitalOut myled(LED1); 00009 00010 int main() { 00011 00012 motor.period_us(50); //20kHz 00013 00014 while(1) { 00015 myled =1; 00016 motor =1.0; 00017 wait(1); 00018 myled = 0; 00019 motor = 0; 00020 wait(1); 00021 } 00022 }
Generated on Wed Jul 27 2022 13:42:55 by
1.7.2