Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teensy LC, SnoozeTimer never wakes #81

Open
ShuffleBit opened this issue May 1, 2020 · 0 comments
Open

Teensy LC, SnoozeTimer never wakes #81

ShuffleBit opened this issue May 1, 2020 · 0 comments

Comments

@ShuffleBit
Copy link

First off: I appreciate your contribution, even if this can't be fixed.

Simple code test on a Teensy LC. Nothing is connected to the LC, however it is powered by Vin, so the USB/Vin jumper on the bottom of the LC is cut, 5.03V power is supplied on Vin, and USB is connected. The call to Snooze.sleep() never returns. I tried deepSleep() also, the only difference being that the USB port goes away when the LC enters deep sleep. I believe it's supposed to wake up after 500ms. It doesn't. The code:

`#include <Snooze.h>
#include <SnoozeBlock.h>

const int ledPin = 13;

SnoozeTimer timer;
SnoozeBlock my_config(timer);

void setup() {
pinMode(ledPin, OUTPUT);
timer.setTimer(5000);// milliseconds
delay(5000); // Because otherwise, we can't ever program it again
}

void loop()
{
digitalWrite(ledPin, HIGH);
delay(10);
digitalWrite(ledPin, LOW);
Snooze.sleep( my_config );
}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant