

Posts tagged with :alphabet-white-c:


use std:Duration}; use rppal::i2c::I2c; fn main() { let mut i2c = I2c::new().expect("Failed to init i2c"); i2c.set_slave_address(0x74) .expect("Failed to set slave address"); for row in 0..6 { thread::sleep(Duration::from_millis(200)); i2c.block_write(0x24 + row * 24, &vec![8; 24].into_boxed_slice()) .expect("Failed to write fill command"); } }



