Lib para L6230
L6230_BLDC.h
- Committer:
- Marcelocostanzo
- Date:
- 2020-06-25
- Revision:
- 0:5b1b141e5837
File content as of revision 0:5b1b141e5837:
#ifndef MBED_L6230_BLDC_H #define MBED_L6230_BLDC_H #include "mbed.h" class L6230_BLDC { public: L6230_BLDC(PinName en1_pin, PinName en2_pin, PinName en3_pin, PinName out1_pin, PinName out2_pin, PinName out3_pin); void stop(); void turn(bool dir, int delay_time); void turn_n_steps(bool dir, int delay_time, int stepNum); void one_step(bool dir, int delay_time, int* prevStep); private: DigitalOut _en1_pin; DigitalOut _en2_pin; DigitalOut _en3_pin; DigitalOut _out1_pin; DigitalOut _out2_pin; DigitalOut _out3_pin; }; #endif