Other Parts Discussed in Thread: DRV2605
Hello,
Can someone please explain to me what is happening here, especially the highlighted section drv.setWaveform?
The source of this code is 'Arduino library for Adafruit DRV2605L Haptic Controller':
#include <Wire.h>
#include "Adafruit_DRV2605.h"
Adafruit_DRV2605 drv;
void setup() {
Serial.begin(9600);
Serial.println("DRV test");
drv.begin();
// I2C trigger by sending 'go' command
drv.setMode(DRV2605_MODE_INTTRIG); // default, internal trigger when sending GO command
drv.selectLibrary(1);
drv.setWaveform(0, 84); // ramp up medium 1, see datasheet part 11.2
drv.setWaveform(1, 1); // strong click 100%, see datasheet part 11.2
drv.setWaveform(2, 0); // end of waveforms
}
void loop() {
drv.go();
delay(1000);
}