display¶
-
class
cbc.display.Display(rmt_channel, gpio_enable, gpio_data)¶ A
Drawabledescendent which represents the CodeBug’s RGB pixel array. This is fixed at a 5x5 size and includes a property to control the display’srotation. Additionally,freeze()andunfreeze()can be used to prevent display updates during complex manipulations.-
freeze()¶ Prevent screen updates until
unfreeze()is called. Note that calls to freeze may be nested. An equivalent number of calls to unfreeze are required to re-enable the display.
-
property
rotation¶ Controls the display’s rotation. Valid values are 0 (the default), 90, 180, and 270. Rotation is performed clockwise facing the CodeBug.
-