agb/examples/beep.rs
2021-04-16 19:07:23 +01:00

19 lines
334 B
Rust

#![no_std]
#![feature(start)]
extern crate gba;
use gba::sound;
#[start]
fn main(_argc: isize, _argv: *const *const u8) -> isize {
let mut gba = gba::Gba::new();
gba.sound.enable();
let sweep_settings = gba::sound::SweepSettings::new(3, false, 7);
gba.sound.channel1().play_sound(&sweep_settings);
loop {}
}