mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-05 22:51:34 +11:00
23 lines
440 B
Rust
23 lines
440 B
Rust
#![no_std]
|
|
#![no_main]
|
|
|
|
use agb::display::{
|
|
example_logo,
|
|
tiled::{RegularBackgroundSize, TileFormat},
|
|
};
|
|
|
|
#[agb::entry]
|
|
fn main(mut gba: agb::Gba) -> ! {
|
|
let (gfx, mut vram) = gba.display.video.tiled0();
|
|
|
|
let mut map = gfx.background(
|
|
agb::display::Priority::P0,
|
|
RegularBackgroundSize::Background32x32,
|
|
TileFormat::FourBpp,
|
|
);
|
|
|
|
example_logo::display_logo(&mut map, &mut vram);
|
|
|
|
loop {}
|
|
}
|