readRatio method

int readRatio(
  1. int channel
)

Reads the ratio between channel input voltage and power voltage (most time it's 3.3V). channel 0 - 7, specify the channel to read, returns the ration in 0.1%.

Implementation

int readRatio(int channel) {
  _checkChannel(channel);
  return _read16BitRegister(0x30 + channel);
}