lib Modulove
Library for building custom scripts for Modulove modules.
|
Hardware abstraction wrapper for A-RYTH-MATIK module. More...
#include <arythmatik.h>
Public Member Functions | |
Arythmatik () | |
Constructor. | |
~Arythmatik () | |
Deconstructor. | |
void | Init () |
Initializes the Arduino, and A-RYTH-MATIK hardware. | |
void | AttachClockHandler (void(*callback)(void)) |
Pin change handlers. | |
void | AttachResetHandler (void(*callback)(void)) |
void | ProcessInputs () |
Read the state of the CLK and RST inputs. | |
arythmatik::Direction | EncoderDirection () |
Parse the configured EncoderButton increment direction. | |
Public Attributes | |
arythmatik::Config | config |
Adafruit_SSD1306 | display |
OLED display object. | |
EncoderButton | eb |
EncoderButton object. | |
DigitalOutput | outputs [arythmatik::OUTPUT_COUNT] |
DigitalInput | clk |
CLK Digital Input object. | |
DigitalInput | rst |
RST Digital Input object. | |
Hardware abstraction wrapper for A-RYTH-MATIK module.
void Arythmatik::AttachClockHandler | ( | void(*)(void) | callback | ) |
Pin change handlers.
callback |
Direction Arythmatik::EncoderDirection | ( | ) |
Parse the configured EncoderButton increment direction.
DigitalOutput modulove::Arythmatik::outputs[arythmatik::OUTPUT_COUNT] |
An array containing each Output object.