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
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Home Assistant/MySensors quirks
Development • 13 days ago • OldSurferDude 13 days ago -
MQTT-Help me understand about the MQTT Gateway.
Development • 28 days ago • dpcons 17 days ago -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07