LimitSwitches
LimitSwitches.h
- Committer:
- williequesada
- Date:
- 2019-06-04
- Revision:
- 0:a298c2462f4f
File content as of revision 0:a298c2462f4f:
#ifndef MBED_LIMITSWITCHES_H #define MBED_LIMITSWITCHES_H #include "mbed.h" class SWITCHES { public: SWITCHES(PinName S1, PinName S2) ; int Read(); void InterruptEnable(); void InterruptDisable(); private: InterruptIn Switch1; InterruptIn Switch2; }; #endif