にいむら にいむら
/
NRPmainprogram2019
aa
Input/Switch/Switch.h@0:2e7a61458dc3, 2019-01-28 (annotated)
- Committer:
- M_souta
- Date:
- Mon Jan 28 08:34:36 2019 +0000
- Revision:
- 0:2e7a61458dc3
NRP2019
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 |