Only getting "Code done running." on 64x64 LED Matrix Display with Matrix Portal

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
dcliang
 
Posts: 6
Joined: Sun Jan 15, 2023 10:56 am

Only getting "Code done running." on 64x64 LED Matrix Display with Matrix Portal

Post by dcliang »

Hello, all. Can someone please help me fix an issue of my LED matrix displaying "Code done running." instead of "Hello World!"?

My setup is a Matrix Portal plugged into a 64x64 LED Matrix (https://www.waveshare.com/wiki/RGB-Matrix-P3-64x64) with the Address E Line connected to Pin 8 and running CircuitPython 7.3.3. I'm currently running a simple code in an attempt to have the LED Matrix display "Hello World!", however, all I'm getting is "Code done running."

Attached a few images for reference. Thank you all in advance!

-------------------------------------------------------------------------------------------------------------------------------
Note: I'm a beginner and am attempting a LED Matrix project that will display the next 2 uptown and downtown arrival times for 7 different trains/buses near my apartment in Manhattan, New York. This has become a bit of an undertaking, even with reference code available from others who have completed similar projects. I started this project on 1/14/23.
Attachments
HelloWorld.JPG
HelloWorld.JPG (66.31 KiB) Viewed 76 times
Eto8.jpeg
Eto8.jpeg (396.83 KiB) Viewed 76 times
CodeDoneRunning.jpeg
CodeDoneRunning.jpeg (314.44 KiB) Viewed 76 times

User avatar
dastels
 
Posts: 15820
Joined: Tue Oct 20, 2015 3:22 pm

Re: Only getting "Code done running." on 64x64 LED Matrix Display with Matrix Portal

Post by dastels »

The matrix seems to be working fine. I suspect the code. Please post the output from the REPL. It should provide more insight into what's going on.

Dave

User avatar
dcliang
 
Posts: 6
Joined: Sun Jan 15, 2023 10:56 am

Re: Only getting "Code done running." on 64x64 LED Matrix Display with Matrix Portal

Post by dcliang »

Thank you, dastels!! I'm completely new to this and didn't realize I can troubleshoot my code by running serial and seeing outputs from the REPL. I've now solved it by modifying code in line 7 based on the REPL response.

Thank you thank you!
Attachments
REPL.JPG
REPL.JPG (47.51 KiB) Viewed 65 times

User avatar
dastels
 
Posts: 15820
Joined: Tue Oct 20, 2015 3:22 pm

Re: Only getting "Code done running." on 64x64 LED Matrix Display with Matrix Portal

Post by dastels »

The REPL is an invaluabvle tool for experimenting (you can type in code and have it executed immediately) and troubleshooting.

Dave

User avatar
dcliang
 
Posts: 6
Joined: Sun Jan 15, 2023 10:56 am

Re: Only getting "Code done running." on 64x64 LED Matrix Display with Matrix Portal

Post by dcliang »

I feel like I was missing a major piece of the puzzle until your note on REPL.

Is there a way to use REPL in Mu without connecting my microcontroller? No problem if not, but thinking it'd be easier if I can learn/test code without possibly messing up my microcontroller because I keep having it rerun/update. Attaching a screenshot of the error I'm currently getting when I try to pull up REPL against a copy of my code without the microcontroller connected to my computer.
Attachments
Mu.JPG
Mu.JPG (24.31 KiB) Viewed 53 times

User avatar
dastels
 
Posts: 15820
Joined: Tue Oct 20, 2015 3:22 pm

Re: Only getting "Code done running." on 64x64 LED Matrix Display with Matrix Portal

Post by dastels »

No the "REPL" in Mu is just a serial terminal window. The REPL is part of the CircuitPython runtime. If you're experimenting with plain Python you can just use Python on your computer. The language is the same. If you want to test more CircuitPython specific code, you might be able to use Blinka depending on what computer you are running on. Something like Raspberry Pi will work. But the best is to use the actual hardware you will be using. I'm not sure why you need to rerun/update to experiment in the REPL.

Dave

User avatar
dcliang
 
Posts: 6
Joined: Sun Jan 15, 2023 10:56 am

Re: Only getting "Code done running." on 64x64 LED Matrix Display with Matrix Portal

Post by dcliang »

Got it, thank you! Figured that's the case but wanted to confirm.

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

Return to “Adafruit CircuitPython”