An analog-to-digital converter (ADC, A/D, A–D, or A-to-D) is a device that converts a continuous physical quantity (usually voltage) to a digital number that represents the quantity’s amplitude.
To use an ADC interface in a driver, you need to have an input with type
"adc" in the
In the JSON configuration above, the first
"adc" is just the name of the ADC interface (you can change it to something else if you want to),
which will be used as the key to get the interface instance in the driver.
"type": "adc" informs Ruff framework to distribute an ADC interface instead of others.
Ruff available: v1.6.0
Ruff Lite available: v0.6.0
Get the voltage of the interface.