From 135185f12ba07dea8568b06c0a65a00a8af7deb7 Mon Sep 17 00:00:00 2001 From: Robin Howard Date: Tue, 7 Nov 2023 15:46:07 +1100 Subject: haptics: adds a wrapper for the DRV2605L haptic motor driver ... with facilities to trigger effects via the system fsm. --- src/system_fsm/include/system_events.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/system_fsm/include/system_events.hpp') diff --git a/src/system_fsm/include/system_events.hpp b/src/system_fsm/include/system_events.hpp index 4db9beb0..2722fa80 100644 --- a/src/system_fsm/include/system_events.hpp +++ b/src/system_fsm/include/system_events.hpp @@ -10,6 +10,7 @@ #include "battery.hpp" #include "database.hpp" +#include "haptics.hpp" #include "service_locator.hpp" #include "tinyfsm.hpp" @@ -55,6 +56,10 @@ struct BatteryStateChanged : tinyfsm::Event { struct BluetoothDevicesChanged : tinyfsm::Event {}; +struct HapticTrigger : tinyfsm::Event { + drivers::Haptics::Effect effect; +}; + namespace internal { struct GpioInterrupt : tinyfsm::Event {}; -- cgit v1.2.3