display

class cbc.display.Display(rmt_channel, gpio_enable, gpio_data)

A Drawable descendent which represents the CodeBug’s RGB pixel array. This is fixed at a 5x5 size and includes a property to control the display’s rotation. Additionally, freeze() and unfreeze() 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.

unfreeze()

Allow screen updates. If the display’s pixels have been modified since the first call to freeze(), the display will be updated. Note that calls to freeze may be nested. An equivalent number of calls to unfreeze are required to re-enable the display.