An RGB pixel to VGA color converter implemented in rust. This crate can be runned also in a no-std environment.
no-std
use rgb2vga::rgb2vga; fn main() { let rgb = (250, 128, 114); let vga = rgb2vga(rgb); // do other things }
cargo run --example simple
cargo run --example std