You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to put the atmega of my rf24 node to sleep, but I need PWM so I can't use the full sleep mode. I need the idle mode instead. I don't see any possibility for this in RF24Network? Maybe it is possible to disable ENABLE_SLEEP_MODE in rf24network_config and use another library for sleeping? I haven't tried that and it would be a solution, but it'd be nice if it was available in rf24network.
The text was updated successfully, but these errors were encountered:
I would propose to add another RF24Network::sleepNode function with an additional parameter:
bool RF24Network::sleepNode( unsigned int cycles, int interruptPin, uint8_t mode ){
sleep_cycles_remaining = cycles;
set_sleep_mode(mode); // sleep mode is set here
sleep_enable();
...
}
the original sleepNode method would then be modified like so.
bool RF24Network::sleepNode( unsigned int cycles, int interruptPin ){
sleepNode(cycles, interruptPin, SLEEP_MODE_PWR_DOWN);
}
Hi,
I'd like to put the atmega of my rf24 node to sleep, but I need PWM so I can't use the full sleep mode. I need the idle mode instead. I don't see any possibility for this in RF24Network? Maybe it is possible to disable ENABLE_SLEEP_MODE in rf24network_config and use another library for sleeping? I haven't tried that and it would be a solution, but it'd be nice if it was available in rf24network.
The text was updated successfully, but these errors were encountered: