UART.sendbreak() and UART.deinit() not working on ESP boards
-
- Posts: 2
- Joined: Sat Feb 24, 2018 10:18 pm
UART.sendbreak() and UART.deinit() not working on ESP boards
Hello everyone, I have ESP8266 as well as ESP32 with the latest micropython on them, but I can't seem to get UART.sendbreak() working on either of them. I am trying to create a DMX signal with a max485 chip that I was able to do with raspberry pi, but neither UART.sendbreak() nor UART.deinit() are available. Would anyone know how this can be?
Re: UART.sendbreak() and UART.deinit() not working on ESP boards
Have you tried simply writing a digital low to the UART TX pin for a software-controlled period and just not sending on the UART? (use of timer might be needed for precision, but using sleep would be a start). I speculate that if UART is inactive you can just take over control directly with machine.Pin#value() and get what you want.
-
- Posts: 2
- Joined: Sat Feb 24, 2018 10:18 pm
Re: UART.sendbreak() and UART.deinit() not working on ESP boards
Thanks for the reply. I already tried to set the pin to digital low (permanently, not just for couple of microseconds) and it wouldn't work on either board. For some reason, it will take the code to go low without errors but then when I ask for the value, it returns 1 and I also checked it with a multimeter and it is in fact high. I even tried it on the second UART pin of the ESP32 and it does the same thing.