Mutila: Mouse's Utilities for Arduino
Oft-used utilities: debouncing buttons, averaging samples, and so on.
src
DebouncedDualButton.h
1
#pragma once
2
3
#include <stdint.h>
4
#include "AbstractDebouncedButton.h"
5
#include "DualInputButton.h"
6
#include "AbstractButton.h"
7
12
class
DebouncedDualButton
:
public
AbstractDebouncedButton
,
public
DualInputButton
{
13
public
:
19
DebouncedDualButton
(
AbstractButton
& button1,
AbstractButton
& button2);
20
35
void
begin
(
bool
callBeginInChildren=
true
, uint8_t threshold=AbstractDebouncedButton::DefaultThreshold, uint8_t delay=AbstractDebouncedButton::DefaultButtonDelay);
36
41
void
update
();
42
47
bool
on
();
48
49
};
50
51
DualInputButton
Definition:
DualInputButton.h:18
AbstractDebouncedButton
Definition:
AbstractDebouncedButton.h:11
DebouncedDualButton::on
bool on()
Definition:
DebouncedDualButton.cpp:31
DebouncedDualButton
Definition:
DebouncedDualButton.h:12
AbstractButton
Definition:
AbstractButton.h:10
AbstractButton::begin
virtual void begin()
Definition:
AbstractButton.h:23
DebouncedDualButton::update
void update()
Definition:
DebouncedDualButton.cpp:17
DebouncedDualButton::DebouncedDualButton
DebouncedDualButton(AbstractButton &button1, AbstractButton &button2)
Definition:
DebouncedDualButton.cpp:6
Generated by
1.8.15