From 970bb5187a59011a63f886bf8e2078c039268f58 Mon Sep 17 00:00:00 2001 From: "0m.ax" Date: Fri, 18 Jul 2025 22:17:22 +0200 Subject: [PATCH] 1 image --- src/main.rs | 15 --------------- 1 file changed, 15 deletions(-) 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);