Closed affoltep closed 6 years ago
That's because the DeepSleep class also uses UART 1 to communicate with the DeepSleep shield https://github.com/pycom/pycom-libraries/blob/master/deepsleep/deepsleep.py#L32
If you move the ds = DeepSleep()
to be below your UART calls it should work.
Many Thank jmarcelino. You are completely right. I should have study the source code before writing an issue ;)
Please include the following information when submitting a bug report:
The Pycom board you are using (e.g. WiPy 2.0, LoPy). Lopy
The firmware version you are using. You can get it by executing the following Python code at the REPL:
The following code prevents the LoPy for changing in deepsleep, issued by the initialization of the UART on port 1:
If you uncomment the the uart.deinit() the LoPy crash.
Regards Peter