TI RSLK Library 0.2.2
Loading...
Searching...
No Matches
Bump_Switch.h
1#ifndef Bump_Switch_h
2#define Bump_Switch_h
3
4#include "Energia.h"
5
11
13{
14private:
15 uint8_t bump_sw_pin;
16 uint8_t num_pins;
17 bool configured;
18
19public:
21
28 bool begin(uint8_t pin_num, uint8_t mode = INPUT_PULLUP);
29
33 bool read();
34};
35#endif
Represents a single bump switch.
Definition Bump_Switch.h:13
bool begin(uint8_t pin_num, uint8_t mode=INPUT_PULLUP)
Initialize the bump switch class.
bool read()
Read the bump switch value.