• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

MicroPython Raspi Pico max7219 LED Matrix do not work

Q&A Forum › Category: Raspberry Pi › MicroPython Raspi Pico max7219 LED Matrix do not work
0 Vote Up Vote Down
uengel asked 1 year ago
Hello Rui/Sara, I'm trying to learn the basics of MicroPython. 
I'm currently working on an example "scrolling text with LED matrix".
Here is my program

from machine import Pin, SPI, ADC
import max7219
from utime import sleep
MAX7219_NUM = 1
MAX7219_INVERT = False
MAX7219_SCROLL_DELAY = 0.15
cs_pin = 5
spi = SPI(0)
display = max7219.Matrix8x8(spi=spi, cs=Pin(cs_pin), num=MAX7219_NUM)
display.brightness(2)

while True:
text = “Hello World!”
for p in range(MAX7219_NUM * 8, len(text) * -8 – 1, -1):
display.fill(MAX7219_INVERT)
display.text(text, p, 1, not MAX7219_INVERT) # Display in the x, y position(string, x, y, color=1)
display.show()
sleep(MAX7219_SCROLL_DELAY)

I use a library from GitHub “https://github.com/mcauser/micropython-max7219”. I copied the library max7219 into a LIB folder on the Raspi. Unfortunately I can’t see my text on the LED matrix, only areas of red LEDs light up. No idea where the error is. Do you have an idea?
Thank you and best regards ULLI


Question Tags: Raspi Pico MicroPython
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 year ago

Hi.
I haven’t used an LED matrix with MicroPython before. So, I’m not sure about the main aspects you need to take a look at…
Make sure the matrix is properly wired to the Raspberry Pi.
 
I couldn’t open the link you shared. Can you double-check it?
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.