reset of project main

This commit is contained in:
ZennDev1337 2023-09-18 18:59:50 +02:00
parent 5df6d9e67b
commit 28d1b1a6da
2 changed files with 1 additions and 8 deletions

View file

@ -7,5 +7,4 @@ edition = "2021"
crate-type = ["staticlib"]
[dependencies]
arduboy-rust = { path = "../../arduboy-rust" }

View file

@ -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();
}