|
void | Init (uint8_t pin) |
| Initializes an Analog CV Output object.
|
|
void | Init (uint8_t cv_pin, uint8_t led_pin) |
| Initializes an LED & CV Output paired object.
|
|
void | Update (int val) |
| Set the output pin to the given 8 bit value.
|
|
void | Update10bit (int val) |
| Set the output pin to the given 10 bit value.
|
|
void | High () |
| Sets the cv output HIGH to about 10v.
|
|
void | Low () |
| Sets the cv output LOW to 0v.
|
|
uint16_t | GetValue () |
| Return an integer value between 0 and 1023 (0..10v) representing the current value of the output.
|
|
◆ GetValue()
uint16_t modulove::AnalogOutput::GetValue |
( |
| ) |
|
|
inline |
Return an integer value between 0 and 1023 (0..10v) representing the current value of the output.
- Returns
- integer value of cv from 0 to 1023.
◆ Init() [1/2]
void modulove::AnalogOutput::Init |
( |
uint8_t |
cv_pin, |
|
|
uint8_t |
led_pin |
|
) |
| |
|
inline |
Initializes an LED & CV Output paired object.
- Parameters
-
cv_pin | gpio pin for the cv output |
led_pin | gpio pin for the LED |
◆ Init() [2/2]
void modulove::AnalogOutput::Init |
( |
uint8_t |
pin | ) |
|
|
inline |
Initializes an Analog CV Output object.
- Parameters
-
pin | gpio pin for the cv output |
◆ Update()
void modulove::AnalogOutput::Update |
( |
int |
val | ) |
|
|
inline |
Set the output pin to the given 8 bit value.
- Parameters
-
val | Arduino analog value between 0 and 255 (0..10v). |
◆ Update10bit()
void modulove::AnalogOutput::Update10bit |
( |
int |
val | ) |
|
|
inline |
Set the output pin to the given 10 bit value.
- Parameters
-
val | Arduino analog value between 0 and 1024 (0..10v). |
The documentation for this class was generated from the following file: