
aa
Input/Switch/Switch.h@1:e1e9671724e7, 2020-01-25 (annotated)
- Committer:
- niimurasyou
- Date:
- Sat Jan 25 02:55:50 2020 +0000
- Revision:
- 1:e1e9671724e7
- Parent:
- 0:2e7a61458dc3
aa
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
M_souta | 0:2e7a61458dc3 | 1 | #ifndef SWITCH_H_ |
M_souta | 0:2e7a61458dc3 | 2 | #define SWITCH_H_ |
M_souta | 0:2e7a61458dc3 | 3 | |
M_souta | 0:2e7a61458dc3 | 4 | #include "mbed.h" |
M_souta | 0:2e7a61458dc3 | 5 | |
M_souta | 0:2e7a61458dc3 | 6 | namespace SWITCH |
M_souta | 0:2e7a61458dc3 | 7 | { |
M_souta | 0:2e7a61458dc3 | 8 | #define LIMITSW0_PIN A7 |
M_souta | 0:2e7a61458dc3 | 9 | #define LIMITSW1_PIN A6 |
M_souta | 0:2e7a61458dc3 | 10 | #define LIMITSW2_PIN A5 |
M_souta | 0:2e7a61458dc3 | 11 | #define LIMITSW3_PIN A4 |
M_souta | 0:2e7a61458dc3 | 12 | |
M_souta | 0:2e7a61458dc3 | 13 | #define MOUNTING_LIMITSW_NUM 4 |
M_souta | 0:2e7a61458dc3 | 14 | |
M_souta | 0:2e7a61458dc3 | 15 | class Switch |
M_souta | 0:2e7a61458dc3 | 16 | { |
M_souta | 0:2e7a61458dc3 | 17 | public: |
M_souta | 0:2e7a61458dc3 | 18 | static void Initialize(void); |
M_souta | 0:2e7a61458dc3 | 19 | static bool CheckPushed(int SwitchNumber); |
M_souta | 0:2e7a61458dc3 | 20 | }; |
M_souta | 0:2e7a61458dc3 | 21 | } |
M_souta | 0:2e7a61458dc3 | 22 | |
M_souta | 0:2e7a61458dc3 | 23 | #endif |