Skip to content

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.

fb_fill

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 block oded_refresh.
  • Use color 0/1 (monochrome framebuffer), typically 0 to clear the image.

Usage example

example_oled_dsiplay

Open example in ESP IDE

Generated Python example

fbuf.fill(0)