lib Modulove
Library for building custom scripts for Modulove modules.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
modulove::Arythmatik Class Reference

Hardware abstraction wrapper for A-RYTH-MATIK module. More...

#include <arythmatik.h>

Collaboration diagram for modulove::Arythmatik:
Collaboration graph
[legend]

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.
 

Detailed Description

Hardware abstraction wrapper for A-RYTH-MATIK module.

Member Function Documentation

◆ AttachClockHandler()

void Arythmatik::AttachClockHandler ( void(*)(void)  callback)

Pin change handlers.

Parameters
callback

◆ EncoderDirection()

Direction Arythmatik::EncoderDirection ( )

Parse the configured EncoderButton increment direction.

Returns
Direction of turn or unchanged.

Member Data Documentation

◆ outputs

DigitalOutput modulove::Arythmatik::outputs[arythmatik::OUTPUT_COUNT]

An array containing each Output object.


The documentation for this class was generated from the following files: