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