My apologies for not being clear. The issue is I'm having is storing the hex values as literals. When using the loop: while True: three = [0x00,0x3c,0x66,0x60,0x38,0x60,0x66,0x3c] j= 0 x = 0.01 for j in range(0, 8): data[0] = three[j] data[1] = 0xFF data[2] = 0xFF data[3] = 0x01 << j buf = byte(data...