arduino-libraries / ArduinoLowPower

Powersave features for SAMD boards
GNU Lesser General Public License v2.1
81 stars 57 forks source link

WakeUp with SERIAL1 #14

Open grezco opened 5 years ago

grezco commented 5 years ago

I would like to put the MKR on sleep mode until a character arrives on SERIAL1 (pin 13-14). Do you think it's possible with ArduinoLowPower Library ?

sslupsky commented 5 years ago

Probably but you would need to look more closely at the sercom module in the SAMD21 datasheet. I recently enabled wake from sleep when there is an I2C slave address match by setting the RUNSTDBY bit in the CTRL register.