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

19 lines
355 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 = sound::SweepSettings::new(3, sound::SoundDirection::Decrease, 7);
gba.sound.channel1().play_sound(&sweep_settings);
loop {}
}