|
@ -48,9 +48,9 @@ |
|
|
|
|
|
|
|
|
// Rotary encoder |
|
|
// Rotary encoder |
|
|
#ifdef USEROTARY_ENABLE |
|
|
#ifdef USEROTARY_ENABLE |
|
|
#define DREHENCODER_CLK 35 // If you want to reverse encoder's direction, just switch GPIOs of CLK with DT (in software or hardware) |
|
|
|
|
|
#define DREHENCODER_DT 34 // Info: Lolin D32 / Lolin D32 pro 35 are using 35 for battery-voltage-monitoring! |
|
|
|
|
|
#define DREHENCODER_BUTTON 105 // (set to 99 to disable; 0->39 for GPIO; 100->115 for port-expander) |
|
|
|
|
|
|
|
|
#define ROTARYENCODER_CLK 35 // If you want to reverse encoder's direction, just switch GPIOs of CLK with DT (in software or hardware) |
|
|
|
|
|
#define ROTARYENCODER_DT 34 // Info: Lolin D32 / Lolin D32 pro 35 are using 35 for battery-voltage-monitoring! |
|
|
|
|
|
#define ROTARYENCODER_BUTTON 105 // (set to 99 to disable; 0->39 for GPIO; 100->115 for port-expander) |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
// Amp enable (optional) |
|
|
// Amp enable (optional) |
|
@ -79,7 +79,7 @@ |
|
|
// Wake-up button => this also is the interrupt-pin if port-expander is enabled! |
|
|
// Wake-up button => this also is the interrupt-pin if port-expander is enabled! |
|
|
// Please note: only RTC-GPIOs (0, 4, 12, 13, 14, 15, 25, 26, 27, 32, 33, 34, 35, 36, 39, 99) can be used! Set to 99 to DISABLE. |
|
|
// Please note: only RTC-GPIOs (0, 4, 12, 13, 14, 15, 25, 26, 27, 32, 33, 34, 35, 36, 39, 99) can be used! Set to 99 to DISABLE. |
|
|
// Please note #2: this button can be used as interrupt-pin for port-expander. If so, all pins connected to port-expander can wake up ESPuino. |
|
|
// Please note #2: this button can be used as interrupt-pin for port-expander. If so, all pins connected to port-expander can wake up ESPuino. |
|
|
#define WAKEUP_BUTTON DREHENCODER_BUTTON // Defines the button that is used to wake up ESPuino from deepsleep. |
|
|
|
|
|
|
|
|
#define WAKEUP_BUTTON ROTARYENCODER_BUTTON // Defines the button that is used to wake up ESPuino from deepsleep. |
|
|
|
|
|
|
|
|
// (optional) Power-control |
|
|
// (optional) Power-control |
|
|
#define POWER 13 // GPIO used to drive transistor-circuit, that switches off peripheral devices while ESP32-deepsleep |
|
|
#define POWER 13 // GPIO used to drive transistor-circuit, that switches off peripheral devices while ESP32-deepsleep |
|
|