Pervasive Displays Library Suite - Reference Manual 9.0.3
Library for Pervasive Displays e-paper screens, extension boards and development kits
|
Class for haptic driver. More...
#include <hV_Haptics_DRV2605L.h>
Public Member Functions | |
DRV2605L (uint8_t mode=USE_DRV2605L_ERM) | |
Constructor. | |
bool | begin () |
Diagnose and configure the DRV2605L. | |
void | selectLibrary (uint8_t library) |
Select a library. | |
void | playEffect (uint8_t effect) |
Play an effect. | |
uint8_t | getMode () |
Get active mode. | |
void | setMode (uint8_t mode) |
Set active mode. | |
bool | check () |
Diagnose the DRV2605L. | |
bool | autoConfigure () |
Auto-configure the DRV2605L. | |
Class for haptic driver.
I2C bus
DRV2605L::DRV2605L | ( | uint8_t | mode = USE_DRV2605L_ERM | ) |
Constructor.
mode | default = USE_DRV2605L_ERM |
bool DRV2605L::autoConfigure | ( | ) |
Auto-configure the DRV2605L.
If auto-configure fails, mode is turned to USE_HAPTICS_NONE
bool DRV2605L::begin | ( | ) |
Diagnose and configure the DRV2605L.
If diagnotic fails, mode is turned to USE_HAPTICS_NONE
bool DRV2605L::check | ( | ) |
Diagnose the DRV2605L.
If diagnotic fails, mode is turned to USE_HAPTICS_NONE
uint8_t DRV2605L::getMode | ( | ) |
Get active mode.
void DRV2605L::playEffect | ( | uint8_t | effect | ) |
Play an effect.
effect | 0..123 |
void DRV2605L::selectLibrary | ( | uint8_t | library | ) |
Select a library.
library | 0..4 for ERM, 5 for LRA |
void DRV2605L::setMode | ( | uint8_t | mode | ) |
Set active mode.