[][src]Function anyleaf::voltage_from_adc

pub fn voltage_from_adc(digi: f32) -> f32

Convert the adc's 16-bit digital values to voltage. Input ranges from +- 2.048V; this is configurable. Output ranges from -32_768 to +32_767.