Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Display issues on Pyportal w/ WeatherStation and Circuitpyth
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Display issues on Pyportal w/ WeatherStation and Circuitpyth

by drencken on Mon Jul 06, 2020 6:33 pm

Hi all - for many months I was successfully running this code (https://learn.adafruit.com/pyportal-weather-station) on my Pyportal. I upgraded my Circuitpython to 5.3 today and it seems to break things. In particular I am noticing that any updates to the text fields causes them to disappear. So at the time of initial rendering you see everything as expected and then the 1st element to be updated is the time on the top right of the display. and it disappears from the screen and then after 10 minutes when there is a new dataset from the Weather API, the text fields are also updated and disappear from the display.

Any ideas?

Thanks

drencken
 
Posts: 4
Joined: Sat Sep 14, 2019 2:32 pm

Re: Display issues on Pyportal w/ WeatherStation and Circuit

by tannewt on Mon Jul 06, 2020 6:45 pm

Did you update libraries as well? Or just CircuitPython?

tannewt
 
Posts: 1724
Joined: Thu Oct 06, 2016 8:48 pm

Re: Display issues on Pyportal w/ WeatherStation and Circuit

by drencken on Mon Jul 06, 2020 6:48 pm

tannewt wrote:Did you update libraries as well? Or just CircuitPython?


I updated both.

drencken
 
Posts: 4
Joined: Sat Sep 14, 2019 2:32 pm

Re: Display issues on Pyportal w/ WeatherStation and Circuit

by kmatocha on Wed Jul 08, 2020 10:09 am

We’re currently working on solving some issues with the ‘label’ command from displayio. If you want to try the latest version that is currently being updated please follow the issue on github here:

https://github.com/adafruit/Adafruit_Ci ... xt/pull/59

I will appreciate if you have time to try it out and give feedback whether it solves your issue.

kmatocha
 
Posts: 12
Joined: Sun Sep 03, 2017 12:17 am

Re: Display issues on Pyportal w/ WeatherStation and Circuit

by drencken on Wed Jul 08, 2020 11:19 am

I tried the files from yesterdays bundle (adafruit-circuitpython-bundle-5.x-mpy-20200707) and it's still broken.

To me it looks like it has to do with text objects in the group rather than the label. In the code there is one label which stays intact. All the text objects that are in groups disappear.

Maybe a z-ordering issue?

drencken
 
Posts: 4
Joined: Sat Sep 14, 2019 2:32 pm

Re: Display issues on Pyportal w/ WeatherStation and Circuit

by kmatocha on Wed Jul 08, 2020 11:45 am

The label function is used to create the text on the display. It’s possible that it is an ordering problem, but we are resolving some possibly related issues with text in some recent revisions that are under evaluation.

The latest label revisions are currently preliminary now under review before making it in the bundle.

If you want to evaluate the preliminary updated version, go to the github link above and download the latest label.py file there and replace your existing label.mpy with this file and try it out.

If you can’t figure out how to do this, I suspect the bundle will be updated with the latest changes in the next week. Once the bundle is updated then I’d like to hear if that fixes your disappearing text issue.

kmatocha
 
Posts: 12
Joined: Sun Sep 03, 2017 12:17 am

Re: Display issues on Pyportal w/ WeatherStation and Circuit

by drencken on Wed Jul 08, 2020 12:13 pm

ok - I downloaded the specific file with the fix and it now works for me.

Thanks for the help

drencken
 
Posts: 4
Joined: Sat Sep 14, 2019 2:32 pm

Re: Display issues on Pyportal w/ WeatherStation and Circuit

by kmatocha on Wed Jul 08, 2020 12:35 pm

Excellent. It should show up in the library bundle soon and then you can save a little disk space with the .mpy version.

Thanks for the feedback! Glad these updates are working better.

kmatocha
 
Posts: 12
Joined: Sun Sep 03, 2017 12:17 am

Re: Display issues on Pyportal w/ WeatherStation and Circuit

by kmatocha on Wed Jul 08, 2020 10:51 pm

The libraries were just updated with this revision. You can download them here:

https://circuitpython.org/libraries

Thanks for your feedback.

Thanks again,
Kevin

kmatocha
 
Posts: 12
Joined: Sun Sep 03, 2017 12:17 am

Please be positive and constructive with your questions and comments.