Expand description
§Canvas
The Canvas module provides the drawing surface for the display.
It handles the pixel buffer, dirty area tracking for efficient updates, and
integration with embedded-graphics if the feature is enabled.
§Example
ⓘ
use mini_oled::screen::canvas::Canvas;
// Canvas is normally obtained from the display driver, not created directly.
// let canvas = display.get_mut_canvas();
// set_pixel(x, y, on/off)
// canvas.set_pixel(10, 20, true);Structs§
- Canvas
- A drawing canvas that manages the pixel buffer and dirty area tracking.