agb/agb/examples/output.rs
2021-08-07 13:21:54 +01:00

20 lines
312 B
Rust

#![no_std]
#![no_main]
extern crate agb;
#[no_mangle]
pub fn main() -> ! {
let mut gba = agb::Gba::new();
let vblank = gba.display.vblank.get();
let mut count = 0;
loop {
vblank.wait_for_VBlank();
agb::println!("Hello, world, frame = {}", count);
count += 1;
}
}