Miya Miyagawa
/
mainboardnrp2018
aaaaa
Input/Switch/Switch.h
- Committer:
- Ryosei
- Date:
- 2019-02-18
- Revision:
- 9:6901b1dfa688
- Parent:
- 1:e73cf2469f83
- Child:
- 10:53a92f2ab1c4
File content as of revision 9:6901b1dfa688:
#ifndef SWITCH_H_ #define SWITCH_H_ #include "mbed.h" extern DigitalIn limitSw[]; extern DigitalOut AIR[]; namespace SWITCH { #define AIR1_PIN A7 #define AIR2_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