peterhinch / micropython-touch

A GUI for touch panel displays.
MIT License
18 stars 4 forks source link

Trying to use Pico-ResTouch-LCD-3.5 (ILI9488, XPT2046) with the given hardware_setup.py file. Still doesnt work. ANY inputs? #9

Open Mustigusti opened 1 month ago

Mustigusti commented 1 month ago

I'm using a raspberry Pi Pico W. I uploaded the necessary drivers to the rp and connected the wires like the instructions said on setup_examples/ili9488_ws_pico_res_touch_pico.py. Everything compiles fine but the screen doesnt react. I'm really at my wits end as I cannot find the problem. Thankful for any inputs.

Mustigusti commented 1 month ago

What I mean with "screen doesn't react" is that there is black backlight but no reaction to any signals that I send.

peterhinch commented 1 month ago

Please could you report the outcome when you run this test.

Mustigusti commented 1 month ago

I ran this test but it didn't work. I realised that I was running lv_micropython instead of standard micropython (https://github.com/lvgl/lv_micropython#:~:text=Raspberry%20Pi%20Pico%20port) because I intended to use LVGL for my project. Then I tried standard micropython and everything worked fine. The test you mentioned and the setup.py program including touch worked aswell.

The problem is that I shortsightedly ran it with lv_micropython and there I cannot import asyncio. I had looked at the available modules with help("modules") and saw that a similar module called uasyncio was available. I then changed the code in micropython-touch to import uasyncio as asyncio. That's how I got to my problem in the first place.

Now I assume I have to freeze lv_binding_micropython into micropython so that I have access to asyncio but having issues at the moment. I think I've read somewhere where you recommended using manifest files. I will try to implement that and will report back.

peterhinch commented 4 weeks ago

I may not be much help with LVGL. I haven't tried that so far. Glad you've got it working.