Update 14 April 2024: I've discovered that it is not necessary to calculate bitmask values for the ext1 external wakeup with the ESP32. There are predefined definitions that you can use. If you are interested check out my post ESP32: Wakeup from multiple GPIO sources and using predefined pin definitions instead of bitmask I'm currently... Continue Reading →