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/booting.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/system_fsm/booting.cpp') diff --git a/src/system_fsm/booting.cpp b/src/system_fsm/booting.cpp index 940e10db..affd3ebc 100644 --- a/src/system_fsm/booting.cpp +++ b/src/system_fsm/booting.cpp @@ -5,9 +5,11 @@ */ #include "collation.hpp" +#include "haptics.hpp" #include "system_fsm.hpp" #include +#include #include "assert.h" #include "esp_err.h" @@ -75,6 +77,7 @@ auto Booting::entry() -> void { std::unique_ptr(drivers::NvsStorage::OpenSync())); sServices->touchwheel( std::unique_ptr{drivers::TouchWheel::Create()}); + sServices->haptics(std::make_unique()); auto adc = drivers::AdcBattery::Create(); sServices->battery(std::make_unique( -- cgit v1.2.3