![](/media/cache/profiles/59fa227af2f15ab2c13cdd9537d536fe.jpg.50x50_q85.jpg)
initial commit
Fork of empc_pdu_v3 by
Diff: SWITCH.h
- Revision:
- 1:1686fedb8e0a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SWITCH.h Fri Apr 07 16:12:08 2017 +0000 @@ -0,0 +1,21 @@ +#ifndef SWITCH_H +#define SWITCH_H + +#include <mbed.h> + +class SWITCH +{ + private: + DigitalIn _sw0; + DigitalIn _sw1; + DigitalIn _sw2; + DigitalIn _sw3; + + public: + SWITCH(PinName sw0, PinName sw1, PinName sw2, PinName sw3); + int GetMode(void); + int GetMove(void); +}; + + +#endif // SWITCH \ No newline at end of file