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

Function show_string

inputmodule-control/src/inputmodule.rs:814–817  ·  view source on GitHub ↗

Render a string with up to five letters

(serialdev: &str, s: &str)

Source from the content-addressed store, hash-verified

812
813/// Render a string with up to five letters
814fn show_string(serialdev: &str, s: &str) {
815 let items: Vec<Vec<u8>> = s.chars().take(5).map(convert_font).collect();
816 show_font(serialdev, &items);
817}
818
819/// Render up to five 5x6 pixel font items
820fn show_font(serialdev: &str, font_items: &[Vec<u8>]) {

Callers 2

serial_commandsFunction · 0.70
clock_cmdFunction · 0.70

Calls 1

show_fontFunction · 0.70

Tested by

no test coverage detected