The BldcHaptics
class is a high-level interface for controlling a BLDC motor
with a haptic feedback loop. It is designed to be used to provide haptic
feedback as part of a rotary input device (the BLDC motor). The component
provides a DetentConfig
interface for configuring the input / haptic feedback
profile for the motor dynamically with configuration of:
The component also provides a HapticConfig
interface for configuring the
haptic feedback loop with configuration of:
The example shows the use of the BldcHaptics
component to drive a
BLDC motor (such as a tiny gimbal motor) as a user input / output device that
provides haptic feedback (such as might be used as a rotary encoder input).
578972c307a99a8a1d9fc7ef2fe5ea6f2dc04e59
idf.py add-dependency "espp/bldc_haptics^1.0.22"