#![cfg(target_os = "linux")]
fn main() -> Result<(), Box<dyn core::error::Error>> {
let file_path = "/sys/class/drm/card1-DP-3/edid";
let bytes = std::fs::read(file_path)?;
let parsed_edid = liboptic_edid::Edid::new(&bytes)?;
println!("Checksum: {:x}", parsed_edid.checksum);
Ok(())
}