readInputVoltage method

int readInputVoltage(
  1. int channel
)

Reads the voltage data of ADC unit from the channel 0 - 7 and returns the voltage in mV.

Implementation

int readInputVoltage(int channel) {
  _checkChannel(channel);
  return _read16BitRegister(0x20 + channel);
}