|
Digigurdy-baz
|
#include <keyboxbutton.h>
Public Member Functions | |
| KeyboxButton (int my_pin, int my_offset) | |
| Constructor. KeyboxButton extends the GurdyButton class for use as a keybox key. More... | |
| int | getOffset () |
| Return the key's note offset. More... | |
Public Member Functions inherited from GurdyButton | |
| GurdyButton (int my_pin, int interval) | |
| Constructor. This class handles simple push-on, release-off buttons. More... | |
| void | update () |
| Polls the button and updates its state. More... | |
| bool | beingPressed () |
| Reports if the button is being pressed this update() cycle. More... | |
| bool | wasPressed () |
| Reports if the button was pressed down this update() cycle. More... | |
| bool | wasReleased () |
| Reports if the button was released this update() cycle. More... | |
Additional Inherited Members | |
Protected Attributes inherited from GurdyButton | |
| Bounce * | bounce_obj |
| bool | being_pressed |
| KeyboxButton::KeyboxButton | ( | int | my_pin, |
| int | my_offset | ||
| ) |
Constructor. KeyboxButton extends the GurdyButton class for use as a keybox key.
| my_pin | The digital voltage pin for this key/switch/button |
| my_offset | The number of semitones this key raises the note beign played |
| int KeyboxButton::getOffset | ( | ) |
Return the key's note offset.