​from usb_iss import UsbIss, defs from bitstring import BitArray import sys # Configure I2C mode iss = UsbIss() #Enter your COM port number iss.open("COMX") iss.setup_i2c() #I2C 7bit address, Reg Address, Byte Count, returns read value. read_value = iss.i2c.read(0xA0, 0x36, 1) first_byte = '{:08b}'.format(read_value[0]) second_byte = '{:08b}'.format(read_value[1]) #Convert first read byte into hex value first_byte_hex = hex((BitArray(bin=(first_byte))).int) #Convert read read byte into hex value second_byte_hex = hex((BitArray(bin=(first_byte))).int) # Write some data( device_add_write_hex, register_add_hex, data_hex(lsbyte...msbyte) #Write value to slave I2C address iss.i2c.write(0xA0, 0x50, [0x98, 0x71, 0x1D, 0x01])