I have a couple quick questions that I am hoping one of you can help me with. They have to do with sleep and I am not seeing the answers clearly laid out in the documentation or on these forums. Apologize in advance if I missed something.
Context: Electron, Firmware 0.7.0-rc6
- Millis() - Is this correct?
System.sleep(seconds); // millis() keeps counting System.sleep(wakeUpPin, edgeTriggerMode, seconds); // millis() does not keep counting
- If I have a RISING interrupt on an interrupt - say intPin
attachInterrupt(intPin,sensorISR,RISING); // I attach an interrupt in my Setup() ... ... // Later in the program ... ... System.sleep(intPin,RISING,seconds); // This wakes the Electron if intPin goes high but does it also call the ISR? System.sleep(seconds); // Here the intPin will still wake up the Electron AND execute the ISR - right?
Again, sorry for the basics but it is hard to debug with sleep and I thought someone would have the answers at hand.