duff2013 / Snooze

Teensy Low Power Library
MIT License
134 stars 37 forks source link

SnoozeDigital on pin #33-41 for T4.x #95

Open baichen opened 4 years ago

baichen commented 4 years ago

Hi Duff, thank you for providing this great library.

I was trying to use SnoozeDigital on pin # greater than 33 for Teensy 4.1 board, and realized that the pin number is limited to 32. And the wakeup codes for other SnoozeBlocks are hard-coded subsequently.

I modified the source code to increase the hard-coded numbers accordingly. It seems that the SnoozeDigital is working on pin #33-35. I wonder if there's any potential issue with this modification.

Thank you very much!

duff2013 commented 4 years ago

As long as you change the hard coded numbers for the other non pin wakeups to a higher number, this is something I intend to do. Probably start the non pin wakeup at 100.

baichen commented 4 years ago

Thank you very much!