tested with another example here using onboard LED for feed back
Code:
#include <Snooze.h>
SnoozeBlock dummyConfig;
SnoozeSPI sdCard;
SnoozeDigital digital;
SnoozeTimer timer;
SnoozeUSBSerial usb;
SnoozeBlock config_teensy2(usb, timer);
SnoozeBlock config_teensy(usb, sdCard, digital);
void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT);
flash(1);
}
void loop() {
// put your main code here, to run repeatedly:
timer.setTimer(2);
delay(10);
Snooze.sleep( config_teensy2 );
flash(2);
Snooze.deepSleep( config_teensy2 );
flash(3);
Snooze.hibernate( config_teensy2 );
flash(4);
timer.setTimer(2);
Snooze.sleep( config_teensy2 );
flash(5);
}
void flash(byte a) {
for (byte b = 0; b < a; b++) {
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}
}
compiled @600mhz
now I see it'll flash 3 times and next wake will restart, not sure what prevent the teensy from reboot in my last example.
also the current measures were near the same, but ~100mA when awaken