シーケンサ内蔵のステッピングモータドライバを制御します。

Revision:
0:f270cfef9a60
Child:
1:6054a5d05fb3
diff -r 000000000000 -r f270cfef9a60 STM_seq.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/STM_seq.h	Thu Jan 10 08:01:00 2019 +0000
@@ -0,0 +1,35 @@
+
+#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
\ No newline at end of file