FramebufferDisplay – Manage updating a display with framebuffer in RAM¶
This initializes a display and connects it into CircuitPython. Unlike other
objects in CircuitPython, Display objects live until
is called. This is done so that CircuitPython can use the display itself.
FramebufferDisplay(framebuffer, *, rotation=0, auto_refresh=True)¶
Create a Display object with the given framebuffer (a buffer, array, ulab.array, etc)
Switches to displaying the given group of layers. When group is None, the default CircuitPython terminal will be shown.
Parameters: group (Group) – The group to show.
refresh(*, target_frames_per_second=60, minimum_frames_per_second=1)¶
When auto refresh is off, waits for the target frame rate and then refreshes the display, returning True. If the call has taken too long since the last refresh call for the given target frame rate, then the refresh returns False immediately without updating the screen to hopefully help getting caught up.
If the time since the last successful refresh is below the minimum frame rate, then an exception will be raised. Set minimum_frames_per_second to 0 to disable.
When auto refresh is on, updates the display immediately. (The display will also update without calls to this.)
True when the display is refreshed automatically.
The brightness of the display as a float. 0.0 is off and 1.0 is full brightness. When
auto_brightnessis True, the value of
brightnesswill change automatically. If
auto_brightnesswill be disabled and will be set to False.
True when the display brightness is adjusted automatically, based on an ambient light sensor or other method. Note that some displays may have this set to True by default, but not actually implement automatic brightness adjustment.
auto_brightnessis set to False if
brightnessis set manually.
The rotation of the display as an int in degrees.