Skip to content

Commit 5a454df

Browse files
committed
Add clearIrq() in case users need
- Re-add clearIrq() into I2C_mode.ino example in case users need - Currently commented out since it was used more for the PWM examples but depending on the error, it users may want to have the code ready instead of power cycling the board
1 parent 2af8d8f commit 5a454df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/I2C_mode/I2C_mode.ino

+8
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ void setup(){
4444

4545
void loop(){
4646

47+
// If uploading often the Haptic Driver IC will throw a fault. Let's
48+
// clear that error (0x10), just in case.
49+
//event = hapDrive.getIrqEvent();
50+
//Serial.print("Interrupt: ");
51+
//Serial.println(event, HEX);
52+
//Serial.println("Clearing event.");
53+
//hapDrive.clearIrq(event);
54+
4755
// Max value is 127 with acceleration on (default).
4856
hapDrive.setVibrate(25);
4957
delay(500);

0 commit comments

Comments
 (0)