micropython-max7219 icon indicating copy to clipboard operation
micropython-max7219 copied to clipboard

All I Get Is Every LED Lit Up?

Open madmacks59 opened this issue 8 months ago • 2 comments

I've installed MicroPython on a Pico (original), installed the libraries, and wired up as shown. When I execute the code every single LED turns on, and stays on.

import max7219 from machine import Pin, SPI #spi = SPI(0) spi = SPI(0, 100000, mosi=Pin(7), sck=Pin(6)) display = max7219.Matrix8x8(spi, Pin(5), 4) display.text('1234',0,0,1) display.show() I then explicitly defined the SPI pins thinking something was funky with communications. I'm stumped...

When I hook the LED unit (it's a 32x8 unit made by Hiletgo) to an Arduino Uno and use standard libraries everything works just fine. So it's got to me some issue with the library implementation in MicroPython or my test code...

Help!

madmacks59 avatar Mar 26 '25 19:03 madmacks59

Hey @madmacks59, I have the same issue. Have you been able to fix this?

KonradLinkowski avatar Jun 17 '25 18:06 KonradLinkowski

Ok so, I've asked chatgpt and it said that it's because pin is not callable so self.cs(0) should be self.cs.value(0). I've changed that and it started to work. But now it works with self.cs(0) as well. I guess it was stuck in the test mode for some unknown reason.

KonradLinkowski avatar Jun 17 '25 19:06 KonradLinkowski