Skip to content

Commit

Permalink
Update PMU example
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Oct 24, 2024
1 parent 4f2a798 commit 27e4e80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/peripheral/PMU_Interrupt/PMU_Interrupt.ino
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ void setup()
watch.enableIRQ(XPOWERS_AXP2101_PKEY_SHORT_IRQ | XPOWERS_AXP2101_PKEY_NEGATIVE_IRQ);

watch.enableIRQ(XPOWERS_AXP2101_BAT_OVER_VOL_IRQ);

// Disable long press to power off feature
watch.disableLongPressShutdown();

// Enable the long press interrupt function
watch.enableIRQ(XPOWERS_AXP2101_PKEY_LONG_IRQ);

}

void loop()
Expand Down

0 comments on commit 27e4e80

Please sign in to comment.