Pygamer ugame module hangs

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
nscale
 
Posts: 25
Joined: Tue Mar 11, 2014 2:02 pm

Pygamer ugame module hangs

Post by nscale »

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!

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

Re: Pygamer ugame module hangs

Post by deshipu »

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

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

User avatar
nscale
 
Posts: 25
Joined: Tue Mar 11, 2014 2:02 pm

Re: Pygamer ugame module hangs

Post by nscale »

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

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

Re: Pygamer ugame module hangs

Post by deshipu »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”