I am using the Snooze library to put my Teensy 3.2 to sleep but I am encountering a few issues.
Firstly, in the SnoozeBlock.pinMode() function I can only directly assign the pin number. So SnoozeBlock.pinMode(23, INPUT_PULLUP, FALLING); works but SnoozeBlock.pinMode(iPin, INPUT_PULLUP, FALLING); where iPin is defined as: int iPin = 23; does not work. Why would this be?
Secondly, upon waking I can't get the Teensy to communicate via serial over the USB port. Is there any way to re enable the USB port to make this work? I've also found that if I try to call Serial.println(); after waking it seems to lock up the Teensy. If I can't get the USB port to work after waking I may need to look at a different method to conserve power. My application is a data logger for a motorcycle. For a few reasons I want to keep the Teensy powered so simply switching the power won't cut it. What have you guys found you have been able to get the current draw down to without the Snooze library?
Firstly, in the SnoozeBlock.pinMode() function I can only directly assign the pin number. So SnoozeBlock.pinMode(23, INPUT_PULLUP, FALLING); works but SnoozeBlock.pinMode(iPin, INPUT_PULLUP, FALLING); where iPin is defined as: int iPin = 23; does not work. Why would this be?
Secondly, upon waking I can't get the Teensy to communicate via serial over the USB port. Is there any way to re enable the USB port to make this work? I've also found that if I try to call Serial.println(); after waking it seems to lock up the Teensy. If I can't get the USB port to work after waking I may need to look at a different method to conserve power. My application is a data logger for a motorcycle. For a few reasons I want to keep the Teensy powered so simply switching the power won't cut it. What have you guys found you have been able to get the current draw down to without the Snooze library?