Kheirddine Zaillel / Mbed 2 deprecated ZAILLEL_Interface

Dependencies:   TS_DISCO_F746NG mbed BufferedSerial LCD_DISCO_F746NG mbed-rtos Trigo BSP_DISCO_F746NG

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Motor.cpp Source File

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 }