Add image, unprocessed

This commit is contained in:
Sofia 2025-09-10 22:11:01 +03:00
parent f12802eb3c
commit f3dc46a38b
5 changed files with 5 additions and 2 deletions

BIN
images/Image.bmp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
images/Image.qoi Normal file

Binary file not shown.

BIN
images/Image.xcf Normal file

Binary file not shown.

2
src/image.rs Normal file
View File

@ -0,0 +1,2 @@
// https://qoiformat.org/qoi-specification.pdf
const image: &[u8; 294] = include_bytes!("../images/Image.qoi");

View File

@ -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();
}
}