diff --git a/Project/game/Cargo.toml b/Project/game/Cargo.toml index cd122f6..b916457 100644 --- a/Project/game/Cargo.toml +++ b/Project/game/Cargo.toml @@ -7,5 +7,4 @@ edition = "2021" crate-type = ["staticlib"] [dependencies] - arduboy-rust = { path = "../../arduboy-rust" } diff --git a/Project/game/src/lib.rs b/Project/game/src/lib.rs index b08c68d..312e5f6 100644 --- a/Project/game/src/lib.rs +++ b/Project/game/src/lib.rs @@ -4,10 +4,9 @@ //Include the Arduboy Library #[allow(unused_imports)] use arduboy_rust::prelude::*; -use arduboy_tone::arduboy_tone_pitch::*; + #[allow(dead_code)] const arduboy: Arduboy2 = Arduboy2::new(); -const sound: ArduboyTones = ArduboyTones::new(); // Progmem data @@ -20,7 +19,6 @@ pub unsafe extern "C" fn setup() { arduboy.begin(); arduboy.set_frame_rate(30); arduboy.clear(); - sound.volume_mode(VOLUME_ALWAYS_NORMAL); } // The loop() function repeats forever after setup() is done @@ -31,9 +29,5 @@ pub unsafe extern "C" fn loop_() { if !arduboy.next_frame() { return; } - sound.tone3(NOTE_C3, 500, NOTE_D3, 250, NOTE_E3, 1000); - delay(2000); - sound.tone2(NOTE_C3, 500, NOTE_D3, 250); - delay(2000); arduboy.display(); }