I need some help! I’m out of ideas. I’m trying to put a WiFi LoRa 32(v3) into deep sleep and wake it up using either of two pins. Print one of two messages depending on which pin executed the wake-up call. The following code results in the output in the attached image. I don’t know how to fix the “SHA-256 comparison failed:” or “E (1015) sleep: Not an RTC IO: GPIO33” errors. Latest searched has shown that pins 33 and 34 are both available as external wake-up pins! Any help would be appreciated. Thanks.
Output%20errors|690x326
//Deep Sleep with External Wake Up
#include "Arduino.h"
#include "LoRaWan_APP.h"
#define WAKEUP_PIN_1 GPIO_NUM_33
#define WAKEUP_PIN_2 GPIO_NUM_34
#define BUTTON_PIN_BITMASK 0x600000000 // 2^33+2^34 in hex
void setup(){
Serial.begin(115200);
delay(1000); //Take some time to open up the Serial Monitor
esp_sleep_enable_ext1_wakeup(BUTTON_PIN_BITMASK,ESP_EXT1_WAKEUP_ANY_HIGH);
pinMode(GPIO_NUM_33, INPUT_PULLUP);
pinMode(GPIO_NUM_34, INPUT_PULLUP);
}
void loop(){
if (digitalRead(GPIO_NUM_33) == LOW && digitalRead(GPIO_NUM_34) == LOW){
esp_deep_sleep_start();
}
if (digitalRead(GPIO_NUM_33) == HIGH){
Serial.println("Message #1...");
}
if (digitalRead(GPIO_NUM_34) == HIGH){
Serial.println("Message #2...");
}
}