103,11 → 103,11 |
txString = string.encode('hex') |
sock.send(txFrame + txOpcode + txData.decode('hex') + txString.decode('hex')) |
|
def cube_update_text_insert(character, r, g, b): |
def cube_update_text_insert(character, r, g, b, delay): |
'''Appends a character to the beginning of the text buffer.''' |
txFrame = struct.pack("!6s6sH", dst_addr, hw_addr, 5) |
txFrame = struct.pack("!6s6sH", dst_addr, hw_addr, 6) |
txOpcode = "22".decode('hex') |
txData = ''.join("%02x%02x%02x%02x" % (r, g, b, character)) |
txData = ''.join("%02x%02x%02x%02x%02x" % (r, g, b, delay, character)) |
sock.send(txFrame + txOpcode + txData.decode('hex')) |
|
def cube_update_waterfall(c0, c1, c2, c3, c4, c5, c6, c7): |