use linux_embedded_hal::I2cdev; use aw2013::{Aw2013, Current, Timing}; fn main() { let i2c = I2cdev::new("/dev/i2c-1").unwrap(); let mut aw2013 = Aw2013::from_default_address(i2c, [Current::Five; 3]); aw2013.reset().unwrap(); aw2013.enable().unwrap(); aw2013 .set_breathing_rgb( [255, 0, 255], &Timing { cycles: 0, delay: 0, rise: 2, hold: 2, fall: 2, off: 1, }, ) .unwrap(); }