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: Module/EStop.hpp
- Revision:
- 0:4ff8aeb3e4d1
- Child:
- 2:0de4854743f7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Module/EStop.hpp Fri Apr 02 05:24:49 2021 +0000
@@ -0,0 +1,13 @@
+#ifndef ZETA_STM_KINETIC_ESTOP_H_
+#define ZETA_STM_KINETIC_ESTOP_H_
+#include "mbed.h"
+class EStop {
+ public:
+ EStop(PinName pin) : _pin(pin,PullDown){}
+ bool isTouch() { return _pin.read();}
+ private:
+ DigitalIn _pin;
+};
+
+#endif
+