Miya Miyagawa
/
Orewotaosita
If you wont to knock me down, look this file...
Diff: Input/Switch/Switch.h
- Revision:
- 0:4df75b08b14a
diff -r 000000000000 -r 4df75b08b14a Input/Switch/Switch.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Input/Switch/Switch.h Fri May 03 11:47:27 2019 +0000 @@ -0,0 +1,25 @@ +#ifndef SWITCH_H_ +#define SWITCH_H_ + +#include "mbed.h" + +extern DigitalIn limitSw[]; + +namespace SWITCH +{ + #define LIMITSW0_PIN A7 + #define LIMITSW1_PIN A6 + #define LIMITSW2_PIN A5 + #define LIMITSW3_PIN A4 + + #define MOUNTING_LIMITSW_NUM 4 + + class Switch + { + public: + static void Initialize(void); + static bool checkPushed(int mySwitch); + }; +} + +#endif