macros and improvements

This commit is contained in:
2025-11-04 14:49:47 -07:00
parent dd26e3528b
commit 97639138a1
11 changed files with 87 additions and 70 deletions

View File

@@ -9,16 +9,10 @@ use abi::{
keyboard::{KeyCode, KeyState},
print, sleep,
};
use core::panic::PanicInfo;
use alloc::format;
use embedded_graphics::{pixelcolor::Rgb565, prelude::RgbColor};
use embedded_snake::{Direction, SnakeGame};
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
print!("user panic: {} @ {:?}", info.message(), info.location(),);
loop {}
}
#[unsafe(no_mangle)]
pub extern "Rust" fn _start() {
main()