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@2:364e8d3f9ee4, 2019-02-12 (annotated)
- Committer:
- papaco
- Date:
- Tue Feb 12 18:10:24 2019 +0000
- Revision:
- 2:364e8d3f9ee4
- Parent:
- 1:4fb1de70cd4d
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| papaco | 0:b47aaa131075 | 1 | #include "mbed.h" |
| papaco | 0:b47aaa131075 | 2 | #include "definitions.h" |
| papaco | 0:b47aaa131075 | 3 | |
| papaco | 0:b47aaa131075 | 4 | class CUTTER{ |
| papaco | 0:b47aaa131075 | 5 | public: |
| papaco | 0:b47aaa131075 | 6 | CUTTER(PinName Up,PinName Down,PinName Direction,PinName Enable); |
| papaco | 0:b47aaa131075 | 7 | void Init(void); |
| papaco | 0:b47aaa131075 | 8 | void Home(void); |
| papaco | 0:b47aaa131075 | 9 | bool check(void); |
| papaco | 0:b47aaa131075 | 10 | void up(void); |
| papaco | 0:b47aaa131075 | 11 | void down(void); |
| papaco | 0:b47aaa131075 | 12 | void cutt(void); |
| papaco | 0:b47aaa131075 | 13 | bool available(void); |
| papaco | 1:4fb1de70cd4d | 14 | void setTimer(int t); |
| papaco | 2:364e8d3f9ee4 | 15 | int getTimer(void); |
| papaco | 0:b47aaa131075 | 16 | private: |
| papaco | 0:b47aaa131075 | 17 | DigitalIn CutterUp; |
| papaco | 0:b47aaa131075 | 18 | DigitalIn CutterDown; |
| papaco | 0:b47aaa131075 | 19 | DigitalOut CutterMotorDirection; |
| papaco | 0:b47aaa131075 | 20 | DigitalOut CutterMotorEnable; |
| papaco | 0:b47aaa131075 | 21 | bool checkUp; |
| papaco | 0:b47aaa131075 | 22 | bool cutting; |
| papaco | 0:b47aaa131075 | 23 | int timer; |
| papaco | 2:364e8d3f9ee4 | 24 | int ProductionTimer; |
| papaco | 0:b47aaa131075 | 25 | };//CUTTER |