MCPcopy Index your code
hub / github.com/FrameworkComputer/inputmodule-rs / set_brightness

Function set_brightness

fl16-inputmodules/src/patterns.rs:318–321  ·  view source on GitHub ↗
(state: &mut LedmatrixState, brightness: u8, matrix: &mut Foo)

Source from the content-addressed store, hash-verified

316}
317
318pub fn set_brightness(state: &mut LedmatrixState, brightness: u8, matrix: &mut Foo) {
319 state.brightness = brightness;
320 fill_grid_pixels(state, matrix);
321}
322
323/// Just sends two I2C commands for the entire grid
324pub fn fill_grid_pixels(state: &LedmatrixState, matrix: &mut Foo) {

Callers 2

handle_commandFunction · 0.85
handle_sleepFunction · 0.85

Calls 1

fill_grid_pixelsFunction · 0.85

Tested by

no test coverage detected