screen_codes

Macro screen_codes 

Source
macro_rules! screen_codes {
    ($A:expr) => { ... };
}
Expand description

Convert string slice to array of screen codes at compile time

Examples

use mos_hardware::screen_codes;
const SCREEN_CODES: [u8; 4] = screen_codes!("way!");
assert_eq!(SCREEN_CODES, [23, 1, 25, 33]);