Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
LinearMotor.h
00001 #ifndef LiNMtR_0_0_1 00002 #define LiNMtR_0_0_1 00003 00004 #include "mbed.h" 00005 00006 class LinearMotor{ 00007 00008 public: 00009 LinearMotor(PinName Dir, PinName Pulse, PinName St, PinName Limit); 00010 Ticker timer; 00011 DigitalOut dir; 00012 DigitalOut pulse; 00013 DigitalOut st; 00014 DigitalIn limit; 00015 void move(double dis, double spd); 00016 void init(void); 00017 int ItvTable[200]; 00018 int stepTable[200]; 00019 }; 00020 00021 #endif
Generated on Sun Jul 17 2022 19:55:54 by
1.7.2