@lib.api_call
    def read_channel(self, channel_num, SD=0b0,
                     internal_ref=0b0, AD_converter=0b0):
        # Append bits to form command byte.
        command_byte = (SD << 7) | (channel_num << 4)\
            | (internal_ref << 3) | (AD_converter << 2)\
            | (0b00)
        self.bus.write_byte(self.addr, command_byte)
        return self.bus.read_byte(self.addr)
Reads channel specified by channel_num, with options.
dataset/ETHPy150Open IEEERobotics/bot/bot/hardware/ADC.py/ADC.read_channel