TODO: Maybe make this private and set it once in the constructor
(&mut self, scale: u8)
| 658 | |
| 659 | // TODO: Maybe make this private and set it once in the constructor |
| 660 | pub fn set_scaling(&mut self, scale: u8) -> Result<(), I2cError> { |
| 661 | self.device.set_scaling(scale) |
| 662 | } |
| 663 | |
| 664 | pub fn new(i2c: I2C, calc_pixel: fn(x: u8, y: u8) -> (u8, u8)) -> LedMatrix<I2C> { |
| 665 | LedMatrix { |