peterhinch / micropython-touch

A GUI for touch panel displays.
MIT License
25 stars 5 forks source link

CloseButton no longer working. #12

Closed beetlegigg closed 4 months ago

beetlegigg commented 4 months ago

Hi Peter A day or two back I built a mp for the rpi picoW using what I think is a version of the V1.24 preview ( I download the mp by using git clone https://github.com/micropython/micropython.git --branch master. I froze in the mp-touch and the mqtt_as by adding the latest files copied from your repository to the manifest. (as I had previously done a couple of months ago)

All seems to work OK except the CloseButton will not close the program. It will, as before, close a sub screen and return to the base screen, but when the CloseButton is clicked on the base screen everything comes to a halt but I don't get back to the REPL prompts as I used to. (running from Thonny) The only recourse is to power cycle the picoW.

I have the previous build so I can revert so its not a pressing issue, but I was wondering if you have any idea of what may be amiss or the best way to track this down. Thanks.

peterhinch commented 4 months ago

Please could you try one of the demo scripts to determine whether the close button works correctly (e.g. simple.py).

I have had problems with the close button not responding to touch, but that doesn't sound like what's happening in your case: it sounds as if it's responding but not behaving correctly.

Just FYI, causes resulted from the small size of the button and its location at the extreme limits of the screen:

beetlegigg commented 4 months ago

I tried the demo script various.py as I had it already copied to the picoW, and the result was the same (no REPL and a power cycle required). But I need to do a more structured testing. As said I was running touch with my own mp build that froze in the touch and the mqtt.

I'm not clear as to what version of the base mp gets used when doing a self build but my build reports: MicroPython v1.24.0-preview.106.g55e75c4ad.dirty on 2024-07-15 I did ask on the mp discussion as to what I may have been downloading for my build and if it was possible to obtain the stable mp v1.23 upon which to base my build, for so far no-one has responded and I'm not sure if I may have based my build on perhaps a flaky interim build of mp.

I will download just the stable v1.23 and have a go with the touch modules directly downloaded to my picoW and check that that works without any problem as my first step to test things out before endeavouring to try another self build with touch and mqtt.

beetlegigg commented 4 months ago

I build another version of mp with touch and mqtt_as.py frozen in, but this time I build on the stable V1.23 version. And please to say all is working and the close button works as it ought.

So whether my glitch was something to do with my previous build, or something in the V1.24 preview I based my previous build on I dont know. So closing this issue as done and dusted :-)