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 -
Gateway without a radio
Development • 12 Jan 2025, 23:19 • OldSurferDude 14 Jan 2025, 22:07 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
PJON and Minicore not working
Development • 8 days ago • Trand 8 days ago -
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