LimitSwitches
LimitSwitches.h
- Committer:
- williequesada
- Date:
- 2019-06-04
- Revision:
- 0:da84ba1b33be
File content as of revision 0:da84ba1b33be:
#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