WakeOn RI in SLEEP_NETWORK_STANDBY?


#21

Can this function be used on CHANGE vs RISING?

    CHANGE to trigger the interrupt whenever the pin changes value,
    RISING to trigger when the pin goes from low to high,
    FALLING for when the pin goes from high to low.

What I have now is:

System.sleep(BTN, FALLING, SLEEP_TIME_SECS, SLEEP_NETWORK_STANDBY);

Given this, would I change it to:

System.sleep({RI_UC, BTN}, CHANGE, SLEEP_TIME_SECS, SLEEP_NETWORK_STANDBY);

/r,
Kolbi


#22

You can also provide a list of trigger edges just the same way as you provide list of pins like this

System.sleep({RI_UC, BTN}, {RISING, FALLING}, SLEEP_TIME_SECS, SLEEP_NETWORK_STANDBY);

#23

Awesome!

Thanks ScruffR!