|
SensorLib 0.5.0
Multi-platform sensor driver library for Arduino, PlatformIO, and ESP-IDF
|
@license MIT License More...
Go to the source code of this file.
Macros | |
| #define | SENSOR_SDA 20 |
| #define | SENSOR_SCL 21 |
Functions | |
| void | printBanner () |
| void | testCapabilities () |
| void | testInit () |
| void | testPlayEffect () |
| void | testPlayEffectAll () |
| void | testShortVibration () |
| void | testShortVibrationGain () |
| void | testShortVibrationLoop () |
| void | testContinuousVibration () |
| void | testLongVibrationBlocking () |
| void | testLongVibrationNonBlocking () |
| void | testWaveformSwitching () |
| void | testSetSequence () |
| void | testStop () |
| void | testStatus () |
| void | testIntensitySweep () |
| void | testAutoDemo () |
| void | printHelp () |
| void | setup () |
| void | loop () |
Variables | |
| HapticDriver_AW86224 | haptic |
@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.
Definition in file aw86224_full.ino.
| #define SENSOR_SCL 21 |
Definition at line 38 of file aw86224_full.ino.
| #define SENSOR_SDA 20 |
Definition at line 34 of file aw86224_full.ino.
| void loop | ( | ) |
Definition at line 398 of file aw86224_full.ino.
References cmd, HapticDriver_AW86224::getF0(), HapticDriver_AW86224::getRamNum(), HapticDriver_AW86224::getVbat(), haptic, i, HapticDriver_AW86224::isPlaying(), HapticDriver_AW86224::longVibration(), printHelp(), testAutoDemo(), testCapabilities(), testContinuousVibration(), testInit(), testIntensitySweep(), testLongVibrationBlocking(), testLongVibrationNonBlocking(), testPlayEffect(), testPlayEffectAll(), testSetSequence(), testShortVibration(), testShortVibrationGain(), testShortVibrationLoop(), testStatus(), testStop(), testWaveformSwitching(), and HapticDriver_AW86224::vibrationUpdate().
Referenced by HapticDriver_AW86224::setWaveLoop(), HapticDriver_AW86224::shortVibration(), and testShortVibrationLoop().
| void printBanner | ( | ) |
Definition at line 55 of file aw86224_full.ino.
Referenced by setup().
| void printHelp | ( | ) |
Definition at line 345 of file aw86224_full.ino.
| void setup | ( | ) |
Definition at line 381 of file aw86224_full.ino.
References printBanner(), printHelp(), testAutoDemo(), testCapabilities(), and testInit().
| void testAutoDemo | ( | ) |
Definition at line 286 of file aw86224_full.ino.
References HapticDriver_AW86224::continuousVibration(), HapticDriver_AW86224::getRamNum(), haptic, i, HapticDriver_AW86224::isPlaying(), HapticDriver_AW86224::longVibration(), HapticDriver_AW86224::playEffect(), HapticDriver_AW86224::shortVibration(), HapticDriver_AW86224::stop(), testIntensitySweep(), testSetSequence(), testShortVibrationGain(), testStatus(), and testWaveformSwitching().
| void testCapabilities | ( | ) |
Definition at line 64 of file aw86224_full.ino.
References HapticDriver_AW86224::getCapabilities(), and haptic.
| void testContinuousVibration | ( | ) |
Definition at line 179 of file aw86224_full.ino.
References HapticDriver_AW86224::continuousVibration(), haptic, and HapticDriver_AW86224::setGain().
Referenced by loop().
| void testInit | ( | ) |
Definition at line 81 of file aw86224_full.ino.
References I2CDeviceNoHal::begin(), I2CDeviceWithHal::begin(), IoExpanderBase::digitalWrite(), expander, HapticDriver_AW86224::getActuatorType(), HapticDriver_AW86224::getChipID(), HapticDriver_AW86224::getChipName(), HapticDriver_AW86224::getF0(), HapticDriver_AW86224::getF0CaliData(), HapticDriver_AW86224::getRamNum(), HapticDriver_AW86224::getVbat(), haptic, LRA, P4_TOUCH_SCL, P4_TOUCH_SDA, IoExpanderBase::pinMode(), SENSOR_SCL, and SENSOR_SDA.
| void testIntensitySweep | ( | ) |
Definition at line 273 of file aw86224_full.ino.
References haptic, and HapticDriver_AW86224::shortVibration().
Referenced by loop(), and testAutoDemo().
| void testLongVibrationBlocking | ( | ) |
Definition at line 188 of file aw86224_full.ino.
References haptic, and HapticDriver_AW86224::longVibration().
Referenced by loop().
| void testLongVibrationNonBlocking | ( | ) |
Definition at line 198 of file aw86224_full.ino.
References haptic, and HapticDriver_AW86224::longVibration().
Referenced by loop().
| void testPlayEffect | ( | ) |
Definition at line 127 of file aw86224_full.ino.
References haptic, and HapticDriver_AW86224::playEffect().
Referenced by loop().
| void testPlayEffectAll | ( | ) |
Definition at line 136 of file aw86224_full.ino.
References HapticDriver_AW86224::getRamNum(), haptic, i, and HapticDriver_AW86224::playEffect().
Referenced by loop().
| void testSetSequence | ( | ) |
Definition at line 230 of file aw86224_full.ino.
References HapticDriver_AW86224::clearSequence(), haptic, HapticDriver_AW86224::playSequence(), and HapticDriver_AW86224::setSequence().
Referenced by loop(), and testAutoDemo().
| void testShortVibration | ( | ) |
Definition at line 147 of file aw86224_full.ino.
References haptic, and HapticDriver_AW86224::shortVibration().
Referenced by loop().
| void testShortVibrationGain | ( | ) |
Definition at line 155 of file aw86224_full.ino.
References haptic, i, and HapticDriver_AW86224::shortVibration().
Referenced by loop(), and testAutoDemo().
| void testShortVibrationLoop | ( | ) |
Definition at line 168 of file aw86224_full.ino.
References haptic, loop(), and HapticDriver_AW86224::shortVibration().
Referenced by loop().
| void testStatus | ( | ) |
Definition at line 256 of file aw86224_full.ino.
References CALIBRATING, ERROR, HapticDriver_AW86224::getStatus(), haptic, IDLE, PAUSED, PLAYING, and STANDBY.
Referenced by loop(), and testAutoDemo().
| void testStop | ( | ) |
Definition at line 244 of file aw86224_full.ino.
References HapticDriver_AW86224::continuousVibration(), haptic, HapticDriver_AW86224::isPlaying(), and HapticDriver_AW86224::stop().
Referenced by loop().
| void testWaveformSwitching | ( | ) |
Definition at line 206 of file aw86224_full.ino.
References HapticDriver_AW86224::getRamNum(), haptic, i, HapticDriver_AW86224::isPlaying(), HapticDriver_AW86224::longVibration(), and HapticDriver_AW86224::stop().
Referenced by loop(), and testAutoDemo().
| HapticDriver_AW86224 haptic |
Definition at line 41 of file aw86224_full.ino.
Referenced by loop(), testAutoDemo(), testCapabilities(), testContinuousVibration(), testInit(), testIntensitySweep(), testLongVibrationBlocking(), testLongVibrationNonBlocking(), testPlayEffect(), testPlayEffectAll(), testSetSequence(), testShortVibration(), testShortVibrationGain(), testShortVibrationLoop(), testStatus(), testStop(), and testWaveformSwitching().