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@0:4ff8aeb3e4d1, 2021-04-02 (annotated)
- Committer:
- _seminahn
- Date:
- Fri Apr 02 05:24:49 2021 +0000
- Revision:
- 0:4ff8aeb3e4d1
- Child:
- 2:0de4854743f7
top_module
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 |