From 7318f53fd8949d8625f498ccb2dd07e501e658b2 Mon Sep 17 00:00:00 2001 From: Robin Howard Date: Tue, 7 Nov 2023 15:46:46 +1100 Subject: haptics: buzz on boot, and when changing focus of items. --- src/ui/ui_fsm.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ui/ui_fsm.cpp') diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp index becb7af5..ee915779 100644 --- a/src/ui/ui_fsm.cpp +++ b/src/ui/ui_fsm.cpp @@ -12,6 +12,7 @@ #include "battery.hpp" #include "core/lv_obj.h" #include "database.hpp" +#include "haptics.hpp" #include "misc/lv_gc.h" #include "audio_events.hpp" @@ -135,6 +136,11 @@ void Splash::exit() { sDisplay->SetDisplayOn( sServices->gpios().Get(drivers::IGpios::Pin::kKeyLock)); } + + // buzz a bit to tell the user we're done booting + events::System().Dispatch(system_fsm::HapticTrigger{ + .effect = drivers::Haptics::Effect::kLongDoubleSharpTick1_100Pct, + }); } void Splash::react(const system_fsm::BootComplete& ev) { -- cgit v1.2.3