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.
Module/EStop.hpp@2:0de4854743f7, 2021-06-10 (annotated)
- Committer:
- _seminahn
- Date:
- Thu Jun 10 01:23:00 2021 +0000
- Revision:
- 2:0de4854743f7
- Parent:
- 0:4ff8aeb3e4d1
v1.1.0 change ssr logic
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| _seminahn | 0:4ff8aeb3e4d1 | 1 | #ifndef ZETA_STM_KINETIC_ESTOP_H_ |
| _seminahn | 0:4ff8aeb3e4d1 | 2 | #define ZETA_STM_KINETIC_ESTOP_H_ |
| _seminahn | 0:4ff8aeb3e4d1 | 3 | #include "mbed.h" |
| _seminahn | 0:4ff8aeb3e4d1 | 4 | class EStop { |
| _seminahn | 0:4ff8aeb3e4d1 | 5 | public: |
| _seminahn | 0:4ff8aeb3e4d1 | 6 | EStop(PinName pin) : _pin(pin,PullDown){} |
| _seminahn | 0:4ff8aeb3e4d1 | 7 | bool isTouch() { return _pin.read();} |
| _seminahn | 0:4ff8aeb3e4d1 | 8 | private: |
| _seminahn | 0:4ff8aeb3e4d1 | 9 | DigitalIn _pin; |
| _seminahn | 0:4ff8aeb3e4d1 | 10 | }; |
| _seminahn | 0:4ff8aeb3e4d1 | 11 | |
| _seminahn | 0:4ff8aeb3e4d1 | 12 | #endif |
| _seminahn | 0:4ff8aeb3e4d1 | 13 | |
| _seminahn | 2:0de4854743f7 | 14 |