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

Function draw_grey_col

fl16-inputmodules/src/patterns.rs:48–51  ·  view source on GitHub ↗
(grid: &mut Grid, col: u8, levels: &[u8; HEIGHT])

Source from the content-addressed store, hash-verified

46}
47
48pub fn draw_grey_col(grid: &mut Grid, col: u8, levels: &[u8; HEIGHT]) {
49 // TODO: I don't think I need the [..HEIGHT] slicing
50 grid.0[8 - col as usize][..HEIGHT].copy_from_slice(&levels[..HEIGHT]);
51}
52
53pub fn display_sleep_reason(sleep_reason: SleepReason) -> Grid {
54 let mut grid = Grid::default();

Callers 1

handle_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected