Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 215 → Rev 216

/PIC Stuff/Cerebot_32MX7_LED_Cube/CubeRawCommands.py
16,10 → 16,9
barray.extend([Calculate_Checksum(barray)])
return barray
 
'''Generates the command for setting an entire layer.'''
def CMD_Set_Layer(layer, leds):
barray = bytearray.fromhex('7E 01 22 11')
barray.extend([layer])
'''Generates the command for setting the entire cube.'''
def CMD_Set_All(leds):
barray = bytearray.fromhex('7E 09 01 11')
barray.extend(leds)
barray.extend([Calculate_Checksum(barray)])
return barray