I want to make an Internet Button go into deep sleep and be able to wake it using one of the buttons (button 1 on the PCB, the one below the USB connector)
if (b.buttonOn(1)) {
System.sleep(D4,RISING);
// allow for the user to release the button on wake up and not enter into a loop
delay(500);
}
This code goes to sleep, but I guess there is no current on button 1 to trigger the wake process. Is that correct? Is there a way to implement a wake up trigger without external components?
Thanks