/PIC Stuff/Cerebot_32MX7_LED_Cube/Ethernet API/cube.py |
---|
86,6 → 86,7 |
txData = ''.join( ["%02x" % (x) for x in frame_buffer[c::3]]) |
payload = txFrame + txOpcode + txColorCh.decode('hex') + txData.decode('hex') |
sock.send(payload) |
time.sleep(0.01) # This value can be smaller (and should be) to reduce flickering |
def cube_update_text_scrolling(string, r, g, b, update_rate): |
'''Sets the scrolling text on the cube.''' |