pub fn display(&mut self) -> Result<(), Error> {
        println!("Unicorn HAT HD:");
        for y in 0..16 {
            let mut line = vec![];
            for x in 0..16 {
                let pixel = self.get_pixel(x, y);
                line.push(RGB(pixel.r, pixel.g, pixel.b).paint("*"));
            }
            println!("{}", ANSIStrings(&line));
        }

        Ok(())
    }
/// Write the display buffer to the Unicorn HAT HD.
Write the display buffer to the Unicorn HAT HD.
Write the display buffer to the Unicorn HAT HD .
pub fn display(&mut self) -> Result<(), Error> {
        println!("Unicorn HAT HD:");
        for y in 0..16 {
            let mut line = vec![];
            for x in 0..16 {
                let pixel = self.get_pixel(x, y);
                line.push(RGB(pixel.r, pixel.g, pixel.b).paint("*"));
            }
            println!("{}", ANSIStrings(&line));
        }
        Ok(())
    }
pub fn display ( & mut self ) -> Result < ( ) , Error > { println ! ( " " ) ; for y in 0 .. 16 { let mut line = vec ! [ ] ; for x in 0 .. 16 { let pixel = self . get_pixel ( x , y ) ; line . push ( RGB ( pixel . r , pixel . g , pixel . b ) . paint ( " " ) ) ; } println ! ( " " ANSIStrings ( line ) ) ; } Ok ( ( ) ) }
Write the display buffer to the Unicorn HAT HD.
Write the display buffer to the Unicorn HAT HD .
&mut self
&mut self