|
120 | 120 | // to simulate a power-off event. |
121 | 121 | // |
122 | 122 | #ifdef ARDUINO_ARCH_ESP32 |
| 123 | + // Only GPIOs which are have RTC functionality can be used: 0,2,4,12-15,25-27,32-39. |
123 | 124 | #ifdef CONFIG_IDF_TARGET_ESP32S2 |
124 | 125 | #define LIGHT_SLEEP_WAKE_PIN GPIO_NUM_35 |
125 | 126 | #else |
126 | | - // Only GPIOs which are have RTC functionality can be used: 0,2,4,12-15,25-27,32-39. |
127 | | - #define LIGHT_SLEEP_WAKE_PIN GPIO_NUM_13 |
| 127 | + #define LIGHT_SLEEP_WAKE_PIN GPIO_NUM_26 // GPIO pins also tested OK: 13, 36. Tested NOT OK: 23. |
| 128 | + #define LIGHT_SLEEP_WAKE_PIN_ALT GPIO_NUM_22 // Matches pin D0 on Wemos D1 mini board |
128 | 129 | #endif |
| 130 | + |
129 | 131 | #else |
130 | 132 | #define LIGHT_SLEEP_WAKE_PIN D1 |
| 133 | + #define LIGHT_SLEEP_WAKE_PIN_ALT D0 // Matches pin GPIO_NUM_22 on LilyGO TTGO T7 Mini32 board |
131 | 134 | #endif // ARDUINO_ARCH_ESP32 |
132 | 135 |
|
133 | 136 | // ----- |
|
299 | 302 | #define IR_GND GPIO_NUM_5 |
300 | 303 | #else |
301 | 304 | #define IR_RECV_PIN GPIO_NUM_23 // IR receiver data pin |
302 | | - #define IR_VCC GPIO_NUM_18 |
303 | | - #define IR_GND GPIO_NUM_26 |
| 305 | + #define IR_VCC GPIO_NUM_19 |
| 306 | + #define IR_GND GPIO_NUM_18 |
304 | 307 | #endif |
305 | 308 | #else |
306 | 309 | #define IR_RECV_PIN D7 // IR receiver data pin |
307 | 310 |
|
308 | | - // Using D5 as VCC and D0 as ground pin for the IR receiver. Should be possible with e.g. the |
| 311 | + // Using D6 as VCC and D5 as ground pin for the IR receiver. Should be possible with e.g. the |
309 | 312 | // TSOP31238 IR receiver as it typically uses only 0.35 mA. |
310 | | - #define IR_VCC D5 |
311 | | - #define IR_GND D0 |
| 313 | + #define IR_VCC D6 |
| 314 | + #define IR_GND D5 |
312 | 315 |
|
313 | 316 | #endif // ARDUINO_ARCH_ESP32 |
314 | 317 |
|
|
324 | 327 | #define IR_GND GPIO_NUM_5 |
325 | 328 | #else |
326 | 329 | #define TEST_IR_RECV_PIN GPIO_NUM_23 |
327 | | - #define TEST_IR_VCC_TEST GPIO_NUM_18 |
328 | | - #define TEST_IR_GND GPIO_NUM_26 // TODO - also VanBus ANALYSER_PIN |
| 330 | + #define TEST_IR_VCC_TEST GPIO_NUM_19 |
| 331 | + #define TEST_IR_GND GPIO_NUM_18 |
329 | 332 | #endif |
330 | 333 | #else |
331 | 334 | #define TEST_IR_RECV_PIN D7 |
332 | | - #define TEST_IR_VCC_TEST D5 |
333 | | - #define TEST_IR_GND D0 |
| 335 | + #define TEST_IR_VCC_TEST D6 |
| 336 | + #define TEST_IR_GND D5 |
334 | 337 | #endif // ARDUINO_ARCH_ESP32 |
335 | 338 |
|
336 | 339 | #ifdef ARDUINO_ARCH_ESP32 |
|
0 commit comments