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.
Stepp.h
00001 #ifndef MBED_STEPPER_H 00002 #define MBED_STEPPER_H 00003 00004 #include "mbed.h" 00005 #include "Debug.h" 00006 #include "EixoMonitoring.h" 00007 00008 #define START_STOP_SPEED 300 // define the Stepper Motor save start/stop speed 00009 #define VERSION 0.3 // define Library version number 00010 00011 class Stepp { 00012 public: 00013 Stepp(PinName clk, PinName dir, PinName en); 00014 int step(int n_steps, bool direction); 00015 bool findLimits(int n_steps, bool direction, DigitalIn sensor); 00016 float version(void); 00017 00018 private: 00019 int speed; 00020 bool acell; 00021 PinName pinOrigin; 00022 PinName pinEnd; 00023 DigitalOut _clk; 00024 DigitalOut _dir; 00025 DigitalOut _en; 00026 Debug* debug; 00027 00028 }; 00029 00030 #endif
Generated on Sun Jul 24 2022 20:01:40 by
1.7.2