light sleep and uart
-
Good morning,
is there a way in order to user light sleep and uart (pin P3 and P4)?
machine.pin_sleep_wakeup(['P4'], machine.WAKEUP_ANY_HIGH, False)
i want send AT command to an external module via Uart (pin P3--> Tx and Pin P4 -->Rx) and go in Light sleep mode (machine.sleep()), when i wait for the answer.
I would like to wake up when i receive something on pin P4 (machine.pin_sleep_wakeup(['P4'], machine.WAKEUP_ANY_HIGH, False) )is it possible?
regards,
Alessandro
-
@Alessandro-Cortese There is no way implemented to stop machine.sleep().