How can I call RF24::powerDown() from my own sleep function?
-
I have worked out the logic to use the PinChangeInt library to have multiple buttons wake a battery operated scene controller so I can make a MiniMote type clone. This sketch framework should also work to make a battery operated door/window sensor that can handle multiple switches. The only problem is I can't use the built in sleep function in 1.4, the interrupts that PinChangeInt generate doesn't cause it to exit. I have been able to port part of it out of the MySensor.cpp library. I found I can call LowPower.powerDown without having to do anything special but haven't figured out how to call RF24::powerDown().
-
-
Well, that was too easy! Now all I have to do is resolve the compile error I get when including the PinChangeInt library without removing MyGateway.cpp from the MySensors library folder, being discussed in http://forum.mysensors.org/topic/347/1-4-error-compiling-with-pinchangeint-h-library-file