I have some questions about Waveform Sequencer for DRV 2605L.
In this datasheet, it describes that when we set bit 7 (for Wait bit), WAV_FRM_SEQ[6:0] bit will be interpreted as a wait time.
But when I use setWaveform(uint8_t slot, uint8_t w) function and set bit 7, for example setWaveform (128,1) or (128,32), there is no change for wait time and the vibration pattern that is described in the Waveform Library Effects List.
Please let me know the below equation that is described in DRV 2605L .
(1) Delaytime = 10ms * WAV_FRM_SEQ [6:0]
And also, when I set this system like the above situation, why can't I change the vibration effects?
DRV2605L
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29153
- Joined: Tue Nov 29, 2016 2:45 pm
Re: DRV2605L
The first parameter is the slot, 0-7. The second parameter is the waveform value.But when I use setWaveform(uint8_t slot, uint8_t w) function and set bit 7, for example setWaveform (128,1) or (128,32),
Try something like
Code: Select all
drv.setWaveform(0, 118); // strong buzz
dev.setWaveform(1, 1<<7 | 50); // 500ms delay
drv.setWaveform(2, 118); // strong buzz
drv.setWaveform(3, 0); // end
drv.go();
Please be positive and constructive with your questions and comments.