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.
CUTTER/CUTTER.h
- Committer:
- papaco
- Date:
- 2019-02-11
- Revision:
- 1:4fb1de70cd4d
- Parent:
- 0:b47aaa131075
- Child:
- 2:364e8d3f9ee4
File content as of revision 1:4fb1de70cd4d:
#include "mbed.h"
#include "definitions.h"
class CUTTER{
public:
CUTTER(PinName Up,PinName Down,PinName Direction,PinName Enable);
void Init(void);
void Home(void);
bool check(void);
void up(void);
void down(void);
void cutt(void);
bool available(void);
void setTimer(int t);
private:
DigitalIn CutterUp;
DigitalIn CutterDown;
DigitalOut CutterMotorDirection;
DigitalOut CutterMotorEnable;
bool checkUp;
bool cutting;
int timer;
};//CUTTER