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: TS_DISCO_F746NG mbed BufferedSerial LCD_DISCO_F746NG mbed-rtos Trigo BSP_DISCO_F746NG
Motor.cpp
00001 #include "mbed.h" 00002 #include "Motor.h" 00003 00004 00005 void Motor::StartMotor_Scan() 00006 { 00007 uint8_t period=40; //25 00008 uint8_t pulsewidth=32; //80 00009 00010 period_us(period); 00011 pulsewidth_us(pulsewidth); 00012 } 00013 00014 00015 void Motor::StopMotor_Scan() 00016 { 00017 uint8_t period=0; // 0Hz 00018 uint8_t pulsewidth=0; // 0% 00019 00020 period_us(period); 00021 pulsewidth_us(pulsewidth); 00022 00023 }
Generated on Mon Jul 25 2022 13:13:50 by
1.7.2