Search found 3 matches

by Alexel
Wed Jan 10, 2024 9:40 pm
Forum: General Discussion and Questions
Topic: UART IRQ
Replies: 6
Views: 172170

Re: UART IRQ

It seems that interrupt function is called with UART class parameter, on which I can call function any() ( it does not work with read() ). >>> def irq_fun(obj): ... print("Type: ", type(obj)) ... print(obj.any()) ... ... ... >>> uart2IRQ = uart2.irq(trigger = UART.RX_ANY, priority = 1, handler = ir...
by Alexel
Wed Jan 10, 2024 9:36 pm
Forum: MicroPython pyboard
Topic: UART IRQ/Callbacks and Class Example
Replies: 6
Views: 173884

Re: UART IRQ/Callbacks and Class Example

...Documentation indicates that irq is available... I don't know where you found that. The official docs have no reference to this as far as I can see. There are various ways to use the UART. You can poll any() to see if data is available. If you don't mind methods which block until data is receive...
by Alexel
Sun Dec 15, 2019 8:52 pm
Forum: Hardware Projects
Topic: XPT2046 3.5" LCD
Replies: 1
Views: 5919

XPT2046 3.5" LCD

Hey guys.
Did anyone managed to run this display on python?
Yet i found this github https://github.com/MatthewLowden/RPi-XP ... een-Python

Please advice
Big thanks