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.
Diff: CUTTER/CUTTER.h
- Revision:
- 0:b47aaa131075
- Child:
- 1:4fb1de70cd4d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CUTTER/CUTTER.h Mon Feb 11 15:28:07 2019 +0000
@@ -0,0 +1,22 @@
+#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);
+ private:
+ DigitalIn CutterUp;
+ DigitalIn CutterDown;
+ DigitalOut CutterMotorDirection;
+ DigitalOut CutterMotorEnable;
+ bool checkUp;
+ bool cutting;
+ int timer;
+};//CUTTER
\ No newline at end of file