Skip to content

Commit

Permalink
boards/esp32-heltec-lora-v2: define BTN0_INT_FLANK
Browse files Browse the repository at this point in the history
  • Loading branch information
gschorcht committed Mar 29, 2020
1 parent be8e117 commit 0c4fb6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions boards/esp32-heltec-lora32-v2/include/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@
*/
#define BTN0_MODE GPIO_IN

/**
* @brief Default interrupt flank definition for the button GPIO
*/
#ifndef BTN0_INT_FLANK
#define BTN0_INT_FLANK GPIO_FALLING
#endif

/**
* @brief Definition for compatibility with previous versions
*/
Expand Down

0 comments on commit 0c4fb6c

Please sign in to comment.