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

Public Member Functions

void Init (uint8_t cv_pin)
 Initializes an CV Output paired object.
 
void Init (uint8_t cv_pin, uint8_t led_pin)
 Initializes an LED & CV Output paired object.
 
void Update (uint8_t state)
 Turn the CV and LED on or off according to the input state.
 
void High ()
 Sets the cv output HIGH to about 5v.
 
void Low ()
 Sets the cv output LOW to 0v.
 
bool On ()
 Return a bool representing the on/off state of the output.
 

Member Function Documentation

◆ Init() [1/2]

void modulove::DigitalOutput::Init ( uint8_t  cv_pin)
inline

Initializes an CV Output paired object.

Parameters
cv_pingpio pin for the cv output

◆ Init() [2/2]

void modulove::DigitalOutput::Init ( uint8_t  cv_pin,
uint8_t  led_pin 
)
inline

Initializes an LED & CV Output paired object.

Parameters
cv_pingpio pin for the cv output
led_pingpio pin for the LED

◆ On()

bool modulove::DigitalOutput::On ( )
inline

Return a bool representing the on/off state of the output.

Returns
true if current cv state is high
false if current cv state is low

◆ Update()

void modulove::DigitalOutput::Update ( uint8_t  state)
inline

Turn the CV and LED on or off according to the input state.

Parameters
stateArduino digital HIGH or LOW values.

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