Skip to content

Commit

Permalink
Merge pull request #13747 from gschorcht/boards/esp32-heltec-lora-v2
Browse files Browse the repository at this point in the history
boards: define the interrupt flank for BTN0 for ESP32 Heltec Lora32 V2
  • Loading branch information
benpicco authored Mar 29, 2020
2 parents 7d624de + 0c4fb6c commit 48eaef7
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 48eaef7

Please sign in to comment.