From ba815f9ff4c2d2d5e7d9ae89674f16b67ab10711 Mon Sep 17 00:00:00 2001 From: Heltec-Aaron-Lee Date: Wed, 6 May 2020 14:36:23 +0800 Subject: [PATCH] fixed example lorawan_interrupt --- .../examples/LoRaWAN/LoRaWan_interrupt/LoRaWan_interrupt.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/LoRa/examples/LoRaWAN/LoRaWan_interrupt/LoRaWan_interrupt.ino b/libraries/LoRa/examples/LoRaWAN/LoRaWan_interrupt/LoRaWan_interrupt.ino index b3622d9a..5d6d7fee 100644 --- a/libraries/LoRa/examples/LoRaWAN/LoRaWan_interrupt/LoRaWan_interrupt.ino +++ b/libraries/LoRa/examples/LoRaWAN/LoRaWan_interrupt/LoRaWan_interrupt.ino @@ -109,7 +109,7 @@ void setup() { LoRaWAN.ifskipjoin(); accelWoke = false; - PINMODE_INPUT_PULLDOWN(INT_PIN); + pinMode(INT_PIN,INPUT); attachInterrupt(INT_PIN, accelWakeup, RISING); Serial.println("Interrupts attached"); }