Add image, unprocessed
This commit is contained in:
parent
f12802eb3c
commit
f3dc46a38b
BIN
images/Image.bmp
Normal file
BIN
images/Image.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
BIN
images/Image.qoi
Normal file
BIN
images/Image.qoi
Normal file
Binary file not shown.
BIN
images/Image.xcf
Normal file
BIN
images/Image.xcf
Normal file
Binary file not shown.
2
src/image.rs
Normal file
2
src/image.rs
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
// https://qoiformat.org/qoi-specification.pdf
|
||||||
|
const image: &[u8; 294] = include_bytes!("../images/Image.qoi");
|
@ -15,6 +15,7 @@ use panic_halt as _;
|
|||||||
use crate::display::{Display, Position, Rgb565};
|
use crate::display::{Display, Position, Rgb565};
|
||||||
|
|
||||||
mod display;
|
mod display;
|
||||||
|
mod image;
|
||||||
|
|
||||||
type CoreClock = atmega_hal::clock::MHz8;
|
type CoreClock = atmega_hal::clock::MHz8;
|
||||||
|
|
||||||
@ -68,9 +69,9 @@ fn main() -> ! {
|
|||||||
display.draw_rect(
|
display.draw_rect(
|
||||||
Position { x: 0, y: 0 },
|
Position { x: 0, y: 0 },
|
||||||
Position { x: 200, y: 200 },
|
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();
|
ufmt::uwriteln!(&mut serial, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA").unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user