Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Pygamer ugame module hangs
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Pygamer ugame module hangs

by nscale on Wed Oct 13, 2021 10:23 am

Hello,
import ugame causes my PyGamer to hang. It is unresponsive, requiring a reset.
(sysname='samd51', nodename='samd51', release='7.0.0', version='7.0.0 on 2021-09-20', machine='Adafruit PyGamer with samd51j19')
Otherwise, the Pygamer appears to be happy.
Any ideas?
Thanks!

nscale
 
Posts: 20
Joined: Tue Mar 11, 2014 2:02 pm

Re: Pygamer ugame module hangs

by deshipu on Sun Oct 17, 2021 7:57 pm

I though I have tried ugame with CircuitPython on PyGamer before 7.0.0 was released, but turns out I had a displayio version of the fame uploaded, so it never tried to import ugame.

Looking closer at what is happening, it seems it crashes on this line:

Code: Select all | TOGGLE FULL SIZE
display = displayio.Display(_fourwire, _TFT_INIT, width=160, height=128,
                            rotation=0, backlight_pin=board.TFT_LITE,
                            auto_refresh=False, auto_brightness=True)


I'm reporting this as a bug at https://github.com/adafruit/circuitpython/issues/5476

deshipu
 
Posts: 16
Joined: Mon Jun 27, 2016 5:40 pm

Re: Pygamer ugame module hangs

by nscale on Mon Oct 18, 2021 4:46 am

Thanks for looking into this. I'll keep an eye out for a fix.

nscale
 
Posts: 20
Joined: Tue Mar 11, 2014 2:02 pm

Re: Pygamer ugame module hangs

by deshipu on Tue Dec 07, 2021 12:10 pm

This is now worked around in CircuitPython 7.1.0-beta.1.

deshipu
 
Posts: 16
Joined: Mon Jun 27, 2016 5:40 pm

Please be positive and constructive with your questions and comments.