An abstract class for momentary push buttons that send MIDI events.
More...
#include <MIDI_Outputs/Bankable/Abstract/MIDIButton.hpp>
template<class BankAddress, class Sender>
class Bankable::MIDIButton< BankAddress, Sender >
An abstract class for momentary push buttons that send MIDI events.
The button is debounced.
- See also
- Button
Definition at line 20 of file Bankable/Abstract/MIDIButton.hpp.
◆ MIDIButton()
| MIDIButton |
( |
const BankAddress & |
bankAddress, |
|
|
pin_t |
pin, |
|
|
const Sender & |
sender |
|
) |
| |
|
inline |
Construct a new bankable MIDIButton.
- Parameters
-
| bankAddress | The bankable MIDI address to send to. |
| pin | The digital input pin with the button connected. The internal pull-up resistor will be enabled. |
| sender | The MIDI sender to use. |
Definition at line 33 of file Bankable/Abstract/MIDIButton.hpp.
◆ begin()
◆ update()
◆ invert()
◆ getButtonState()
◆ enable() [1/4]
Enable this updatable: insert it into the linked list of instances, so it gets updated automatically.
Definition at line 45 of file Updatable.hpp.
◆ enable() [2/4]
| static void enable |
( |
Updatable< T > * |
element | ) |
|
|
inlinestaticinherited |
◆ enable() [3/4]
| static void enable |
( |
Updatable< T > & |
element | ) |
|
|
inlinestaticinherited |
◆ enable() [4/4]
| static void enable |
( |
U(&) |
array[N] | ) |
|
|
inlinestaticinherited |
◆ disable() [1/4]
Disable this updatable: remove it from the linked list of instances, so it no longer gets updated automatically.
Definition at line 55 of file Updatable.hpp.
◆ disable() [2/4]
| static void disable |
( |
Updatable< T > * |
element | ) |
|
|
inlinestaticinherited |
◆ disable() [3/4]
| static void disable |
( |
Updatable< T > & |
element | ) |
|
|
inlinestaticinherited |
◆ disable() [4/4]
| static void disable |
( |
U(&) |
array[N] | ) |
|
|
inlinestaticinherited |
◆ isEnabled()
Check if this updatable is enabled.
- Note
- Assumes that the updatable is not added to a different linked list by the user.
Definition at line 69 of file Updatable.hpp.
◆ beginAll()
◆ updateAll()
| static void updateAll |
( |
| ) |
|
|
inlinestaticinherited |
◆ address
◆ button
◆ sender
◆ updatables
◆ next
◆ previous
The documentation for this class was generated from the following file: