Fill framebuffer (fb_fill)¶
What it does: Fills the entire framebuffer with the selected color (0/1) and thus quickly erases the previous image from memory.

Inputs¶
- Field
color: parameter selection in the block menu.
Output¶
- None (statement block).
When to use it¶
- When you want to delete the old image at the beginning of the slide before drawing a new one.
- When switching screens or resetting the artboard.
Tips and pitfalls¶
- Block writes only to
fbuf; the content is transferred to the physical display only with blockoded_refresh. - Use color
0/1(monochrome framebuffer), typically0to clear the image.
Usage example¶

Generated Python example¶
fbuf.fill(0)