Disable Pin Wakeup RT1062 P11

Hi all!

I’m just getting to grips with a new RT1062 - so much functionality out of the box! One quick q: is it possible to disable the wakeup interupt on P11 before entering deep sleep? It seems like it’s configured by default. I’d like to be able to put the unit to sleep with the choice of this either armed whilst the system is active or to preclude waking until the RTC timer kicks in during an inactive ‘wait’ mode.

Many thanks,
H

Hi Heolstor…

No, you’d need to edit the MicroPython code. We arm it right before going to sleep:

You can create your own version of the deepsleep method in pure python though by using the machine module and writing to the register from Python.

import machine
machine.mem32[0x400D4000 + 0x38] |= 0x40
while True: pass
1 Like