diff --git a/CHANGELOG.md b/CHANGELOG.md index a84b0999..d5779c2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Add ledmodes for G733QS +- Add ledmodes for GA401Q # [3.2.4] - 2021-03-24 ### Changed diff --git a/asusctl/examples/animatrix.rs b/asusctl/examples/animatrix.rs index 1850d31f..990ced71 100644 --- a/asusctl/examples/animatrix.rs +++ b/asusctl/examples/animatrix.rs @@ -6,7 +6,7 @@ fn main() { let (client, _) = AuraDbusClient::new().unwrap(); let bmp = - Bmp::from_slice(include_bytes!("non-skewed_r.bmp")).expect("Failed to parse BMP image"); + Bmp::from_slice(include_bytes!("skewed_r.bmp")).expect("Failed to parse BMP image"); let pixels: Vec = bmp.into_iter().collect(); //assert_eq!(pixels.len(), 56 * 56); @@ -22,21 +22,24 @@ fn main() { } // Throw an alignment border up - // { - // let tmp = matrix.get_mut(); - // for x in tmp[0].iter_mut() { - // *x = 0xff; - // } - // for row in tmp.iter_mut() { - // row[row.len() - 1] = 0xff; - // } - // } + { + let tmp = matrix.get_mut(); + for x in tmp[0].iter_mut() { + *x = 0xff; + } + for (i,row) in tmp.iter_mut().enumerate() { + if i % 2 == 0 { + let l = row.len(); + row[l - 1] = 0xff; + } + } + } matrix.debug_print(); - let mut matrix: AniMePacketType = AniMePacketType::from(matrix); + //let mut matrix: AniMePacketType = AniMePacketType::from(matrix); // println!("{:?}", matrix[0].to_vec()); // println!("{:?}", matrix[1].to_vec()); - //client.proxies().anime().set_brightness(&mut matrix).unwrap(); + client.proxies().anime().write_image(matrix).unwrap(); } diff --git a/data/asusd-ledmodes.toml b/data/asusd-ledmodes.toml index 23a007bd..e9490ed2 100644 --- a/data/asusd-ledmodes.toml +++ b/data/asusd-ledmodes.toml @@ -35,7 +35,7 @@ per_key = false [[led_data]] prod_family = "ROG Strix" -board_names = ["G531GW"] +board_names = ["G531GW", "G733QS", "G733QR"] standard = ["Static", "Breathe", "Strobe", "Rainbow", "Star", "Rain", "Highlight", "Laser", "Ripple", "Pulse", "Comet", "Flash"] multizone = false per_key = true @@ -80,4 +80,11 @@ prod_family = "ROG" board_names = ["GL553VE"] standard = ["Static", "Breathe", "Strobe"] multizone = true +per_key = false + +[[led_data]] +prod_family = "ROG Zephyrus G14" +board_names = ["GA401Q"] +standard = ["Static", "Breathe", "Pulse"] +multizone = false per_key = false \ No newline at end of file