duff2013 / Snooze

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

Snooze works on Teensy 3.5 but not on Teensy 3.2 #73

Closed andrewashe closed 4 years ago

andrewashe commented 4 years ago

Hi I have used snooze with Teensy 3.5 and it works perfectly with simple code below. Same code doesnt work on Teensy 3.2. (teensy goes to sleep and never wakes up). Any thoughts? `#include

const int led = 13; // Load timer driver SnoozeTimer timer; // install timer driver to a SnoozeBlock SnoozeBlock config(timer);

void setup() {

Serial.begin(9600); pinMode(led, OUTPUT); timer.setTimer(5000);

}

void loop() { digitalWrite(led, HIGH); delay (3000); digitalWrite(led, LOW); Snooze.deepSleep(config); }`

duff2013 commented 4 years ago

I just updated Snooze only deepSleep and hibernate work so far you can download here, let me know if you have any problems.