diff --git a/images/Image.bmp b/images/Image.bmp new file mode 100644 index 0000000..2e47e38 Binary files /dev/null and b/images/Image.bmp differ diff --git a/images/Image.qoi b/images/Image.qoi new file mode 100644 index 0000000..4afbcc7 Binary files /dev/null and b/images/Image.qoi differ diff --git a/images/Image.xcf b/images/Image.xcf new file mode 100644 index 0000000..372c1c3 Binary files /dev/null and b/images/Image.xcf differ diff --git a/src/image.rs b/src/image.rs new file mode 100644 index 0000000..26e84c6 --- /dev/null +++ b/src/image.rs @@ -0,0 +1,2 @@ +// https://qoiformat.org/qoi-specification.pdf +const image: &[u8; 294] = include_bytes!("../images/Image.qoi"); diff --git a/src/main.rs b/src/main.rs index 6a2a9a4..437b5cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,6 +15,7 @@ use panic_halt as _; use crate::display::{Display, Position, Rgb565}; mod display; +mod image; type CoreClock = atmega_hal::clock::MHz8; @@ -68,9 +69,9 @@ fn main() -> ! { display.draw_rect( Position { x: 0, y: 0 }, Position { x: 200, y: 200 }, - Rgb565(0, 0, 255).as_color(), + Rgb565(color % 255, color % 100, color % 50).as_color(), ); - color = color + 5 % 255; + color = color + 50; ufmt::uwriteln!(&mut serial, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA").unwrap(); } }