シーケンサ内蔵のステッピングモータドライバを制御します。
STM_seq.h
- Committer:
- Akito914
- Date:
- 2019-01-10
- Revision:
- 0:f270cfef9a60
- Child:
- 1:6054a5d05fb3
File content as of revision 0:f270cfef9a60:
#ifndef __STM_SEQ_H__ #define __STM_SEQ_H__ #include "mbed.h" class stepMotor{ public: stepMotor(PinName pinName_CLK , PinName pinName_DIR , PinName pinName_Sleep , PinName pinName_Fault); ~stepMotor(); void oneStep(bool direction); void setSleep(bool enable); bool getSleep(); bool getFault(); private: DigitalOut pin_CLK; DigitalOut pin_DIR; DigitalOut pin_Sleep; DigitalIn pin_Fault; }; #endif