UART IRQ/Callbacks and Class Example - MicroPython Forum
forum.micropython.org › viewtopicFeb 19, 2018 · Hi, I have managed to send and receive data via UART on the pyboard, but have been unable to do that using interrupts. Please see code below. Documentation indicates that irq is available: >>> import pyb. >>> from pyb import UART. >>> uart1 = UART (1,baudrate=9600) >>> uart1.irq (UART.RX_ANY,priority=1,handler=print ('Uart callback!'),wake ...