Library version for DC_Stepper_Controller_Lib with PWM speed control

Dependencies:   mbed QEI PID

Dependents:   DR-ArmServoTest Auto_DC_pick_class MBed_TR1 ros_button_2021

main.cpp

Committer:
stivending
Date:
2021-05-19
Revision:
5:c040faf21e07
Parent:
4:b242191ed0cf
Child:
7:6e59ed00a6a9

File content as of revision 5:c040faf21e07:

#include "mbed.h"
#include "QEI.h"
#include "DC_Motor_Controller.h"

DC_Motor_Controller motor(D2,D4,D8,D7,792);

 
int main() {        //  Sample Testing program
    motor.reset();
    motor.move_angle(90);
    wait(1);
    motor.move_angle(-90);
    wait(1);
    motor.move_angle(-90);
    wait(1);
}