Subversion Repositories Code-Repo

Rev

Rev 214 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 214 Rev 216
Line 14... Line 14...
14
	barray = bytearray.fromhex('7E 00 07 10')
14
	barray = bytearray.fromhex('7E 00 07 10')
15
	barray.extend([layer,row,column,r,g,b,])
15
	barray.extend([layer,row,column,r,g,b,])
16
	barray.extend([Calculate_Checksum(barray)])
16
	barray.extend([Calculate_Checksum(barray)])
17
	return barray
17
	return barray
18
 
18
 
19
'''Generates the command for setting an entire layer.'''
19
'''Generates the command for setting the entire cube.'''
20
def CMD_Set_Layer(layer, leds):
20
def CMD_Set_All(leds):
21
	barray = bytearray.fromhex('7E 01 22 11')
21
	barray = bytearray.fromhex('7E 09 01 11')
22
	barray.extend([layer])
-
 
23
	barray.extend(leds)
22
	barray.extend(leds)
24
	barray.extend([Calculate_Checksum(barray)])
23
	barray.extend([Calculate_Checksum(barray)])
25
	return barray
24
	return barray
26
 
25
 
27
'''Generates the command for setting the rotating overlay text.'''
26
'''Generates the command for setting the rotating overlay text.'''