Mutila: Mouse's Utilities for Arduino
Oft-used utilities: debouncing buttons, averaging samples, and so on.
DigitalInputButton.h
1 #pragma once
2 
3 #include <stdint.h>
4 #include "AbstractButton.h"
5 
15 public:
29  DigitalInputButton(const uint8_t pin, const bool pullup=true);
30 
38  void begin();
39 
44  bool on();
45 
46 protected:
47  const uint8_t _pin;
48  const bool _pullup;
49 
50 };
51 
DigitalInputButton(const uint8_t pin, const bool pullup=true)