LED Matrix¶
Display¶
set_display(
self
, rows
)rows
is an 8 element array of 8-bit strings.Displays the given
rows
on the specified LED Matrixrows = ['00000000',
'11000011',
'11000011',
'00000000',
'10000001',
'11000011',
'00111100',
'00000000'
],
Robo.Matrix1.set_display(rows)
Timed Display¶
set_display(
self
, rows
, duration
)rows
is an 8 element array of 8-bit strings.duration
is the time in secondsDisplays the given
rows
on the specified LED Matrix for the specified amount of timerows = ['00000000',
'11000011',
'11000011',
'00000000',
'10000001',
'11000011',
'00111100',
'00000000'
],
Robo.Matrix1.set_display(rows, 4)
Check Action¶
check_action(
self
)Returns 1 if the the action has completed
while not Robo.Matrix1.check_action():
# do stuff while the timed display is on
Rotate Right¶
rotate_right(
self
, rows
)Rotates the image to the right by 90 degrees
image = Robo.Matrix1.rotate_right(rows)
Rotate Left¶
rotate_left(
self
, rows
)Rotates the image to the left by 90 degrees
image = Robo.Matrix1.rotate_left(rows)