![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
If you wont to knock me down, look this file...
Input/Switch/Switch.h@0:4df75b08b14a, 2019-05-03 (annotated)
- Committer:
- Ryosei
- Date:
- Fri May 03 11:47:27 2019 +0000
- Revision:
- 0:4df75b08b14a
a
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Ryosei | 0:4df75b08b14a | 1 | #ifndef SWITCH_H_ |
Ryosei | 0:4df75b08b14a | 2 | #define SWITCH_H_ |
Ryosei | 0:4df75b08b14a | 3 | |
Ryosei | 0:4df75b08b14a | 4 | #include "mbed.h" |
Ryosei | 0:4df75b08b14a | 5 | |
Ryosei | 0:4df75b08b14a | 6 | extern DigitalIn limitSw[]; |
Ryosei | 0:4df75b08b14a | 7 | |
Ryosei | 0:4df75b08b14a | 8 | namespace SWITCH |
Ryosei | 0:4df75b08b14a | 9 | { |
Ryosei | 0:4df75b08b14a | 10 | #define LIMITSW0_PIN A7 |
Ryosei | 0:4df75b08b14a | 11 | #define LIMITSW1_PIN A6 |
Ryosei | 0:4df75b08b14a | 12 | #define LIMITSW2_PIN A5 |
Ryosei | 0:4df75b08b14a | 13 | #define LIMITSW3_PIN A4 |
Ryosei | 0:4df75b08b14a | 14 | |
Ryosei | 0:4df75b08b14a | 15 | #define MOUNTING_LIMITSW_NUM 4 |
Ryosei | 0:4df75b08b14a | 16 | |
Ryosei | 0:4df75b08b14a | 17 | class Switch |
Ryosei | 0:4df75b08b14a | 18 | { |
Ryosei | 0:4df75b08b14a | 19 | public: |
Ryosei | 0:4df75b08b14a | 20 | static void Initialize(void); |
Ryosei | 0:4df75b08b14a | 21 | static bool checkPushed(int mySwitch); |
Ryosei | 0:4df75b08b14a | 22 | }; |
Ryosei | 0:4df75b08b14a | 23 | } |
Ryosei | 0:4df75b08b14a | 24 | |
Ryosei | 0:4df75b08b14a | 25 | #endif |