1#include "Bump_Switch.h"
3Bump_Switch::Bump_Switch()
12 bump_sw_pin = pin_num;
13 pinMode(bump_sw_pin, mode);
19 return digitalRead(bump_sw_pin);
bool begin(uint8_t pin_num, uint8_t mode=INPUT_PULLUP)
Initialize the bump switch class.
bool read()
Read the bump switch value.