printer

Function printer 

Source
pub fn printer(lines: &[(u8, u8, u8, u8)]) -> Vec<Vec<u8>>
Expand description

Convert vector of points from run_length to direct commands Return vector of small line / dot bytecodes

ยงExample

create RLE line vector from 178x128 binary vector and create line bytecode

let img: [u8; 22784] = [1; 22784]; // add stuff here
let lines = run_length(&img).unwrap();
let code = printer(&lines);
println("Bytecode: {:02X?}", code);