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 252... Line 252...
252
        else:
252
        else:
253
            rotation_counter = rotation_counter - 1
253
            rotation_counter = rotation_counter - 1
254
 
254
 
255
'''Write the local buffer to the cube.'''
255
'''Write the local buffer to the cube.'''
256
def Cube_Update():
256
def Cube_Update():
257
    offset = 0
-
 
258
    for layer in range(CUBE_LAYER_COUNT):
-
 
259
        serial_port.write(CMD_Set_Layer(layer, cube_buffer[offset:offset+GCS_LAYER_SIZE]))
-
 
260
        offset += GCS_LAYER_SIZE
-
 
261
257
    serial_port.write(CMD_Set_All(cube_buffer))
-
 
258
262
259