|
TI RSLK Library
0.2.0
|
Represents a single bump switch. More...
#include <Bump_Switch.h>
Public Member Functions | |
| bool | begin (uint8_t pin_num, uint8_t mode=INPUT_PULLUP) |
| Initialize the bump switch class. More... | |
| bool | read () |
| Read the bump switch value. More... | |
Represents a single bump switch.
An instance of this class represents a single Pololus bump switch. The function begin must be called before using any other function.
Definition at line 12 of file Bump_Switch.h.
| bool Bump_Switch::begin | ( | uint8_t | pin_num, |
| uint8_t | mode = INPUT_PULLUP |
||
| ) |
Initialize the bump switch class.
| [in] | pin_num | Pin number on Launchpad connected to bump switch |
| [in] | mode | for input pin. Options are the same as standard Energia/Arduino pin mode. |
This function needs to be called before any other function is used.
Definition at line 10 of file Bump_Switch.cpp.
| bool Bump_Switch::read | ( | ) |
Read the bump switch value.
Definition at line 16 of file Bump_Switch.cpp.
1.8.16