sample/
sample.rs

1extern crate edid_rs;
2
3// Sample EDID data from a Macbook Pro.
4// (Precisely a MacBookPro 11,3 'i7 2.6')
5const BYTES: [u8; 128] = [
6      0, 255, 255, 255, 255, 255, 255,   0,
7      6,  16,  34, 160,   0,   0,   0,   0,
8      4,  23,   1,   4, 165,  33,  21, 120,
9      2, 111, 177, 167,  85,  76, 158,  37,
10     12,  80,  84,   0,   0,   0,   1,   1,
11      1,   1,   1,   1,   1,   1,   1,   1,
12      1,   1,   1,   1,   1,   1, 239, 131,
13     64, 160, 176,   8,  52, 112,  48,  32,
14     54,   0,  75, 207,  16,   0,   0,  26,
15      0,   0,   0, 252,   0,  67, 111, 108, 
16    111, 114,  32,  76,  67,  68,  10,  32, 
17     32,  32,   0,   0,   0,  16,   0,   0, 
18      0,   0,   0,   0,   0,   0,   0,   0, 
19      0,   0,   0,   0,   0,   0,   0,  16,
20      0,   0,   0,   0,   0,   0,   0,   0,
21      0,   0,   0,   0,   0,   0,   0, 222
22];
23
24fn main() {
25    println!("{:#?}", edid_rs::parse(&mut std::io::Cursor::new(&BYTES[..])));
26}