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: mbed
main.cpp
- Committer:
- yuki0701
- Date:
- 2020-11-21
- Revision:
- 0:247c31683f0b
File content as of revision 0:247c31683f0b:
#include "mbed.h" PwmOut motor1(p21); PwmOut motor2(p22); PwmOut motor3(p23); PwmOut motor4(p24); DigitalOut led(LED1); int main() { motor1.period_us(10); motor2.period_us(10); motor3.period_us(10); motor4.period_us(10); while(1) { motor1=0.2; motor2=0; motor3=0.2; motor4=0; wait(1); motor1=0; motor2=0; motor3=0; motor4=0; wait(1); motor1=0; motor2=0.2; motor3=0; motor4=0.2; wait(1); motor1=0; motor2=0; motor3=0; motor4=0; wait(1); led = 1; printf("print\n\r"); } /*while(1){ printf("a\n\r"); }*/ }