Adafruit_PureIO/smbus.py
def write_byte(self, addr, val):
        """Write a single byte to the specified device."""
        assert self._device is not None, 'Bus must be opened before operations are made against it!'
        self._select_device(addr)
        data = bytearray(1)
        data[0] = val & 0xFF
        self._device.write(data)
def write_byte(self, addr, val):
        """Write a single byte to the specified device."""
        assert self._device is not None, 'Bus must be opened before operations are made against it!'
        self._select_device(addr)
        data = bytearray(1)
        data[0] = val & 0xFF
        self._device.write(data)
def write_byte ( self , addr , val ) : assert self . _device is not None , 'Bus must be opened before operations are made against it!' self . _select_device ( addr ) data = bytearray ( 1 ) data [ 0 ] = val & 0xFF self . _device . write ( data )
Write a single byte to the specified device.
Write a single byte to the specified device .