Actually looking at this a little more, I think I want the sleep trigger to be CHANGE - I have an external pullup circuit and was having trouble getting the device to wake sometimes (not passing the trigger voltage), then found this old post: Having trouble using Sleep() with wakeUpPin where @peekay123 mentions that pinMode is set to PULLDOWN for RISING, PULLUP for FALLING, and INPUT for change. Where is this kind of stuff documented? Should I put in a PR to the firmware docs?
beck
4
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Trouble with interrupts waking from sleep | 11 | 2537 | June 13, 2016 | |
| Simple Sleep Questions | 1 | 627 | January 30, 2018 | |
| How is this possible? Frustrations with i2c, interrupts and sleep | 12 | 1179 | July 31, 2021 | |
| P1 does not wake up after timer elpses or on interrupt | 8 | 1629 | April 7, 2016 | |
| Photon (0.4.5 & 0.4.6) not waking up after sleep with interrupt | 21 | 3402 | October 2, 2015 |