Wearables

Xadow sleep mode

Hi.

I'm running the following code on Xadow:

void setup()
{

Serial.begin(9600);
while(!Serial.available());
Xadow.init();

delay(2000);
Serial.println("Init over");
}

void loop()
{
Serial.println("Sleeping");
delay(1000);
Xadow.pwrDown(4000); // sleep for 1000ms
Xadow.wakeUp(); // wake up
Serial.println("Wake");
delay(1000); // delay 500 ms

}

The problem is that on the output I have:

Init over
Sleeping
Wake
Sleeping

It looks like it runs one time and then it hangs....any ideas?

Thanks,
Cesare PizziSep 22,2015 04:39 AMAdd Comment

Comment

Popular Topics