rlvgl 0.1.6

A modular, idiomatic Rust reimplementation of the LVGL graphics library for embedded and simulator use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Runs the rlvgl simulator in a desktop window.
use rlvgl::platform::{InputEvent, PixelsDisplay};

fn main() {
    PixelsDisplay::new(64, 64).run(
        |frame| {
            for pixel in frame.chunks_exact_mut(4) {
                pixel.copy_from_slice(&[0x00, 0x00, 0x00, 0xff]);
            }
        },
        |_evt: InputEvent| {},
    );
}