add power-on indicator for tts mode

This commit is contained in:
bunnie 2022-03-17 18:41:12 +08:00
parent 5d754efc07
commit b1f8c1ea1b

View file

@ -363,6 +363,18 @@ fn xmain() -> ! {
log::debug!("subscribe to wifi updates");
netmgr.wifi_state_subscribe(cb_cid, StatusOpcode::WifiStats.to_u32().unwrap()).unwrap();
let mut wifi_status: WlanStatus = WlanStatus::from_ipc(WlanStatusIpc::default());
#[cfg(feature="tts")]
thread::spawn({
move || {
// indicator of boot-up for blind users
let tt = ticktimer_server::Ticktimer::new().unwrap();
tt.sleep_ms(1500).unwrap();
let xns = xous_names::XousNames::new().unwrap();
let llio = llio::Llio::new(&xns);
llio.vibe(llio::VibePattern::Double).unwrap();
}
});
log::info!("|status: starting main loop"); // don't change this -- factory test looks for this exact string
loop {
let msg = xous::receive_message(status_sid).unwrap();