Function led_matrix::run
source ยท pub fn run<F: FnOnce(&mut dyn LedMatrix) + Send + 'static>(f: F) -> !Expand description
Runs your program with an initialized LedMatrix.
The implementation (hardware or emulator) is automatically chosen based on the compilation target.
This run function is a slightly leaky abstraction, unfortunately. The emulator is built with egui, which must be run on the main thread. However, the library API want to give the user control over the rendering loop. This means the users code must be moved to a separate thread.