mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-24 00:31:34 +11:00
19 lines
355 B
Rust
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 {}
|
|
}
|