def set(self, channel, state):
        """Set DAC value and enable output"""
        checked_val = self._check_dac_val(channel, state)
        self._dac_enabled = 0x40
        self.i2c.write8(self._dac_enabled, checked_val * 255)
def set ( self , channel , state ) : checked_val = self . _check_dac_val ( channel , state ) self . _dac_enabled = 0x40 self . i2c . write8 ( self . _dac_enabled , checked_val * 255 )
Set DAC value and enable output