Uart Interrupt Wipy 2.0
-
I need to use the uart interrupt but I found the example for wipy 1.0 but for wipy 2.0 I can't make it work.
Is there any example to use uart irq for WiPy 2.0?
Regards
-
Hi @jakarman12
Could you please give an example (in MicroPython) of what you are trying to do?
Thanks!
-
Hi @bucknall:
Of course, here it is.
from machine import UART import pycom import time uart = UART(1, baudrate=9600) pycom.heartbeat(False) UART.irq(UART.RX_ANY, priority=1, handler=irq_uart1, wake=machine.IDLE) def irq_uart1 (): print ("Uart Interrupt") pass uart.write('hello') while 1: pass This is the error: **Traceback (most recent call last): File "main.py", line 7, in <module> AttributeError: type object 'UART' has no attribute 'irq'** -
@jakarman12 Ah ok!
We currently do not support interrupts in the ESP32 MicroPython branch for the UART bus. I know this is on the roadmap of things to do, so I'll check with Daniel to see where we are with this!
Thanks for your patience!
-
-
@bucknall said in Uart Interrupt Wipy 2.0:
We currently do not support interrupts in the ESP32 MicroPython branch for the UART bus. I know this is on the roadmap of things to do, so I'll check with Daniel to see where we are with this!
Thanks for your patience!Hi Guys,
there are updates that concern UART interrupt?
This aspect is very important!
Thanks
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login