- let mut a770 = a770::A770::new();
- a770.set_color(255, 0, 0);
+ let mut a770 = a770::A770::new().unwrap();
+ a770.set_color(255, 0, 0).unwrap();
+}
+
+fn test_3080ti() {
+ let machine: &mut dyn machine::Machine = &mut machine::MachineLyssMetal::new().unwrap();
+
+ machine.set_color(&RGB {
+ red: 255,
+ green: 0,
+ blue: 0,
+ });
+}
+
+const F17H_M01H_THM_TCON_CUR_TMP: u32 = 0x00059800;
+const F17H_TEMP_OFFSET_FLAG: u32 = 0x80000;
+const FAMILY_17H_PCI_CONTROL_REGISTER: u32 = 0x60;
+
+fn test_read_temperature_cpu() {
+ println!("temp cpu: {}", cpu_temperature::read())
+}
+
+fn test_read_temperature_a770() {
+ let jiji: &dyn machine::Machine = &machine::MachineJiji::new().unwrap();
+ println!("temp gpu: {}", jiji.get_gpu_tmp());