liblary for stepping_motor stepping_moter name(pin,pin,pin,pin);φ1,φ2,~φ1,~φ2 name.step_moter(act step,wait time per step)
stepping_moter.h
00001 #ifndef MBED_STEPPING_MOTER_H 00002 #define MBED_STEPPING_MOTER_H 00003 00004 class stepping_moter{ 00005 public: 00006 stepping_moter(PinName p1,PinName p2,PinName p3,PinName p4); 00007 void step_moter(int deg_set, double wait_time); 00008 00009 private: 00010 BusOut _d; 00011 };//class 00012 00013 #endif
Generated on Mon Aug 15 2022 13:31:28 by
1.7.2