#![no_main]
#![no_std]
extern crate flipperzero_rt;
extern crate flipperzero_alloc;
use core::ffi::CStr;
use core::time::Duration;
use flipperzero::{
furi::thread::sleep,
notification::{feedback, led, NotificationApp},
};
use flipperzero_rt::{entry, manifest};
manifest!(name = "Rust notification example");
entry!(main);
fn main(_args: Option<&CStr>) -> i32 {
let mut app = NotificationApp::open();
for sequences in [&led::ONLY_RED, &led::ONLY_GREEN, &led::ONLY_BLUE] {
app.notify(sequences);
sleep(Duration::from_secs(1));
}
app.notify(&led::RESET_RGB);
app.notify_blocking(&feedback::SUCCESS);
0
}