Update to match firmware's expectation of protocol

This commit is contained in:
shylie 2026-01-11 08:08:55 -05:00
parent 8b17d1a9ca
commit 9444bdd9b7
2 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/target
/.idea

View File

@ -72,9 +72,17 @@ fn main() -> Result<(), Error> {
writer.write(&[0x42])?;
writer.flush()?;
} else {
// name of card
// converted mana cost
writer.write(&[20])?;
// colors
writer.write(&[0b11111])?;
// length of card name
writer.write(&[0])?;
// name of card
let img = image::open(&args[1])?;
let img = img.crop_imm(28, 28, img.width() - 56, img.height() - 56);
let img = img.resize_exact(240, 320, FilterType::Gaussian);