40: Haptics Control
Control the haptics The first haptics action after power-on will also result in the haptics driver being initialized, leading to a calibration.
Payload
| Field | Name | Description | Type | Unit |
|---|---|---|---|---|
| 1 | Pattern | Pattern of haptics [1-3] Possible values:
| uint8 | |
| 2 | Intensity | Intensity of haptics [0-2] Possible values:
| uint8 |
Examples
Medium intensity fade
📡 Real example from RH2 ESP32 Toit on 2025-10-14This example is captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor, where Toit on the ESP32 made the request.
Medium intensity pulse
📡 Real example from RH2 ESP32 Toit on 2025-10-14This example is captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor, where Toit on the ESP32 made the request.
Mediaum intensity drop
📡 Real example from RH2 ESP32 Toit on 2025-10-14This example is captured from an RH2 device as part of normal communications over I2C with the ESP32 co-processor, where Toit on the ESP32 made the request.
Code
For convenience, the following constants can be used to reference this message type.