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

Matrix Portal Trouble
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Matrix Portal Trouble

by BluesPwr1009 on Sat Mar 13, 2021 10:23 pm

I have a Matrix Portal board and an Adafruit 64x32 led matrix to go with it. I wanted to mess around with the Network Connected Matrix Clock project and I loaded the code and my secrets file as well as all of the required libraries. When I run it, all I get is the attached picture. What am I doing wrong?
Attachments
PXL_20210314_020527632.MP_compress47.jpg
PXL_20210314_020527632.MP_compress47.jpg (867.86 KiB) Viewed 85 times
PXL_20210314_020527632.MP_compress47.jpg
PXL_20210314_020527632.MP_compress47.jpg (867.86 KiB) Viewed 85 times

BluesPwr1009
 
Posts: 39
Joined: Sat Aug 22, 2015 5:52 pm

Re: Matrix Portal Trouble

by BluesPwr1009 on Sun Mar 14, 2021 9:32 am

In addition, I am seeing this vin the serial output:

code.py output:
Metro Minimal Clock
Time will be set for America/New_York
Traceback (most recent call last):
File "code.py", line 49, in <module>
File "adafruit_display_text/label.py", line 84, in __init__
AttributeError: 'NoneType' object has no attribute 'split'

Code done running.

BluesPwr1009
 
Posts: 39
Joined: Sat Aug 22, 2015 5:52 pm

Re: Matrix Portal Trouble

by jliu70 on Sun Mar 14, 2021 12:39 pm

Hi,
Not sure what could be the issue.

I assume that you kept the original code, so the line where the error occurs is this one:

Code: Select all | TOGGLE FULL SIZE
clock_label = Label(font, max_glyphs=6)


Which calls the library adafruit_display_text.label
Code: Select all | TOGGLE FULL SIZE
from adafruit_display_text.label import Label


Which version of CircuitPython are you using?

jliu70
 
Posts: 40
Joined: Wed Oct 21, 2020 9:27 pm

Re: Matrix Portal Trouble

by BluesPwr1009 on Sun Mar 14, 2021 4:15 pm

Yes. All the code was copied directly. I am using Circuit Python 6.1.0.

BluesPwr1009
 
Posts: 39
Joined: Sat Aug 22, 2015 5:52 pm

Re: Matrix Portal Trouble

by jliu70 on Mon Mar 15, 2021 1:33 pm

I played around and found a few things which may help narrow down the issue.

First off, I ran CircuitPython 6.1.0
Code: Select all | TOGGLE FULL SIZE
Adafruit CircuitPython 6.1.0 on 2021-01-21; Adafruit Matrix Portal M4 with samd51j19


Next, I tried different versions of the libraries. The CircuitPython Bundle for 6.x from 2021-02-24 works.
The CircuitPython Bundle for 6.x from 2021-03-13 does not work and errors out with the error reported above.

Code: Select all | TOGGLE FULL SIZE
 3739138 Feb 24 16:00 adafruit-circuitpython-bundle-6.x-mpy-20210224.zip
 3822176 Mar 13 21:08 adafruit-circuitpython-bundle-6.x-mpy-20210313.zip


The libraries loaded are:
Code: Select all | TOGGLE FULL SIZE
ls -l /Volumes/CIRCUITPY/lib
total 64
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_bitmap_font
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_bus_device
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_display_shapes
drwxrwxrwx@ 1 jliu  staff   1024 Oct 21 20:38 adafruit_display_text
drwxrwxrwx  1 jliu  staff   2048 Oct 21 20:38 adafruit_esp32spi
-rwxrwxrwx@ 1 jliu  staff    705 Mar 13 05:12 adafruit_fakerequests.mpy
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_imageload
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_io
-rwxrwxrwx@ 1 jliu  staff   6178 Oct 20 05:11 adafruit_lis3dh.mpy
drwxrwxrwx  1 jliu  staff   1024 Oct 21 20:38 adafruit_matrixportal
drwxrwxrwx@ 1 jliu  staff   1024 Mar 15 12:47 adafruit_portalbase
-rwxrwxrwx@ 1 jliu  staff  12187 Oct 20 05:11 adafruit_requests.mpy
-rwxrwxrwx@ 1 jliu  staff   1891 Oct 20 05:11 neopixel.mpy


However, it's not all the libraries.
Specifically two libraries are the cause of the issue:

Code: Select all | TOGGLE FULL SIZE
adafruit_display_text
adafruit_matrixportal


All the other libraries I kept with the newest versions in the newest bundle. Only those two had to be rolled back.

I'm not sure how to look at what's changed in the latest bundle, but I believe that the recent changes have broken backwards compatibility for the example code.

jliu70
 
Posts: 40
Joined: Wed Oct 21, 2020 9:27 pm

Re: Matrix Portal Trouble

by jliu70 on Mon Mar 15, 2021 2:01 pm

Found this issue which may be related: https://github.com/adafruit/Adafruit_Ci ... issues/141

Issue seems to be fixed.

Tried again with the latest bundle adafruit-circuitpython-bundle-6.x-mpy-20210314 and it works.

jliu70
 
Posts: 40
Joined: Wed Oct 21, 2020 9:27 pm

Re: Matrix Portal Trouble

by BluesPwr1009 on Mon Mar 15, 2021 2:46 pm

Great! I will try it later and write back. Thank you for your help!

BluesPwr1009
 
Posts: 39
Joined: Sat Aug 22, 2015 5:52 pm

Re: Matrix Portal Trouble

by adafruit_support_carter on Mon Mar 15, 2021 4:00 pm

Yep, try updating the library to latest release. I believe it is related to the issue @jliu70 mentions above, which should be fixed now.

adafruit_support_carter
 
Posts: 20126
Joined: Tue Nov 29, 2016 2:45 pm

Re: Matrix Portal Trouble

by BluesPwr1009 on Mon Mar 15, 2021 6:55 pm

That did it! I updated all of the libraries and it works great. Thanks again!

BluesPwr1009
 
Posts: 39
Joined: Sat Aug 22, 2015 5:52 pm

Please be positive and constructive with your questions and comments.