SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
Loading...
Searching...
No Matches
drv2605_full.ino File Reference

@license MIT License More...

#include <HapticDrivers.hpp>
Include dependency graph for drv2605_full.ino:

Go to the source code of this file.

Macros

#define SENSOR_SDA   3
 
#define SENSOR_SCL   2
 

Functions

void printBanner ()
 
void testCapabilities ()
 
void testInit ()
 
void testActuatorType ()
 
void testLibrarySelection ()
 
void testPlayEffect ()
 
void testPlayEffectRange ()
 
void testSetSequence ()
 
void testRTP ()
 
void testStop ()
 
void testStatus ()
 
void testModes ()
 
void testCalibration ()
 
void testF0 ()
 
void testStandby ()
 
void testNormalMode ()
 
void testAutoDemo ()
 
void printHelp ()
 
void setup ()
 
void loop ()
 

Variables

HapticDriver_DRV2605 haptic
 

Detailed Description

@license MIT License

Copyright (c) 2026 lewis he

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Author
Lewis He (lewis.nosp@m.he@o.nosp@m.utloo.nosp@m.k.co.nosp@m.m)
Date
2026-04-07

Definition in file drv2605_full.ino.

Macro Definition Documentation

◆ SENSOR_SCL

#define SENSOR_SCL   2

Definition at line 37 of file drv2605_full.ino.

◆ SENSOR_SDA

#define SENSOR_SDA   3

Definition at line 33 of file drv2605_full.ino.

Function Documentation

◆ loop()

◆ printBanner()

void printBanner ( )

Definition at line 42 of file drv2605_full.ino.

Referenced by setup().

◆ printHelp()

void printHelp ( )

Definition at line 326 of file drv2605_full.ino.

Referenced by loop(), and setup().

◆ setup()

void setup ( )

◆ testActuatorType()

void testActuatorType ( )

◆ testAutoDemo()

◆ testCalibration()

void testCalibration ( )

Definition at line 241 of file drv2605_full.ino.

References HapticDriver_DRV2605::calibrate(), and haptic.

Referenced by loop().

◆ testCapabilities()

void testCapabilities ( )

Definition at line 51 of file drv2605_full.ino.

References HapticDriver_DRV2605::getCapabilities(), and haptic.

Referenced by loop(), and setup().

◆ testF0()

void testF0 ( )

Definition at line 254 of file drv2605_full.ino.

References HapticDriver_DRV2605::getF0(), and haptic.

Referenced by loop(), and testAutoDemo().

◆ testInit()

◆ testLibrarySelection()

void testLibrarySelection ( )

◆ testModes()

◆ testNormalMode()

void testNormalMode ( )

Definition at line 273 of file drv2605_full.ino.

References haptic, INTERNAL_TRIGGER, and HapticDriver_DRV2605::setMode().

Referenced by loop().

◆ testPlayEffect()

void testPlayEffect ( )

Definition at line 129 of file drv2605_full.ino.

References haptic, and HapticDriver_DRV2605::playEffect().

Referenced by loop().

◆ testPlayEffectRange()

void testPlayEffectRange ( )

Definition at line 142 of file drv2605_full.ino.

References haptic, i, and HapticDriver_DRV2605::playEffect().

Referenced by loop(), and testAutoDemo().

◆ testRTP()

◆ testSetSequence()

◆ testStandby()

void testStandby ( )

Definition at line 266 of file drv2605_full.ino.

References haptic, HapticDriver_DRV2605::setMode(), and STANDBY.

Referenced by loop().

◆ testStatus()

void testStatus ( )

Definition at line 200 of file drv2605_full.ino.

References CALIBRATING, ERROR, HapticDriver_DRV2605::getStatus(), haptic, IDLE, PAUSED, PLAYING, and STANDBY.

Referenced by loop(), and testAutoDemo().

◆ testStop()

void testStop ( )

Variable Documentation

◆ haptic