Mutila: Mouse's Utilities for Arduino
Oft-used utilities: debouncing buttons, averaging samples, and so on.
src
DigitalInputButton.h
1
#pragma once
2
3
#include <stdint.h>
4
#include "AbstractButton.h"
5
14
class
DigitalInputButton
:
public
AbstractButton
{
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::begin
void begin()
Definition:
DigitalInputButton.cpp:10
DigitalInputButton::on
bool on()
Definition:
DigitalInputButton.cpp:19
AbstractButton
Definition:
AbstractButton.h:10
DigitalInputButton::DigitalInputButton
DigitalInputButton(const uint8_t pin, const bool pullup=true)
Definition:
DigitalInputButton.cpp:4
DigitalInputButton
Definition:
DigitalInputButton.h:14
Generated by
1.8.15