I am testing for low power and I would like the radio to be asleep all the time, except for when it is time to send the message.
Just like myRadio.sleep() to put the radio to sleep, is there or what it is the function to awaken the radio from sleep.
I looked at RF95 library, did not find something to awaken the radio.
void setup() {
// Radio - Initialize the radio and put it to sleep to save energy
myRadio.init();
myRadio.sleep();
// Flash - We're not using, so just power it down to save energy
myFlash.init(T2_WPN_FLASH_SPI_CS);
myFlash.powerDown();
}
void loop() {
// put your main code here, to run repeatedly
LowPower.powerDown(SLEEP_8S, ADC_OFF,BOD_OFF);
}
Just like myRadio.sleep() to put the radio to sleep, is there or what it is the function to awaken the radio from sleep.
I looked at RF95 library, did not find something to awaken the radio.
void setup() {
// Radio - Initialize the radio and put it to sleep to save energy
myRadio.init();
myRadio.sleep();
// Flash - We're not using, so just power it down to save energy
myFlash.init(T2_WPN_FLASH_SPI_CS);
myFlash.powerDown();
}
void loop() {
// put your main code here, to run repeatedly
LowPower.powerDown(SLEEP_8S, ADC_OFF,BOD_OFF);
}
