diff --git a/src/main.rs b/src/main.rs index 23bc058..3032b68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -167,26 +167,11 @@ impl Display { } } } - - /// Clears the entire screen to black. - #[allow(dead_code)] - fn blank_screen(&mut self) { - for x in 0..DISPLAY_WIDTH { - for y in 0..DISPLAY_HEIGHT { - self.set_pixel(x as u16, y as u16, 0, 0, 0); - } - } - self.flush_frame(); - } } fn main() { let mut images = vec![ BouncingImage::new("images/unicorn_cc.png", 13, -10, 1, -1, -1), - BouncingImage::new("images/windows_logo.png", -8, 3, 2, -1, -1), - BouncingImage::new("images/spade.png", 32, -12, 1, 0, 0), - BouncingImage::new("images/dvdvideo.png", 20, 6, 5, 1000, 800), - BouncingImage::new("images/hackaday.png", 40, 18, 3, 500, 800), ]; let mut display = Display::new(DISPLAY_HOST, DISPLAY_PORT);