Closed doreks closed 7 years ago
The library has been completely rewritten and it has a different namespace now. The classes are quite different but there is a nod to some legacy methods.
Have a look at the documentation and examples.
any example..? I totally lost trying to run this example of code clock in my raspberry pi:
https://rpikitchen.wordpress.com/2016/10/30/clock-using-a-max7219-matrix-display/
:-/
Have you tried running the matrix demo example in the project?
Lost how exactly?
The clock code from that blog is using the older version of the library, but it should be pretty simple to convert it to the new style if you look at the imports and how the device is initialised in the matrix demo code vs. the imports and initialisation in the clock code.
the case is that when i execute any example in my matrix.led I cannot see anything. Only I can see the led flapping and moving but I'm not able to read or understood the lines.. :-( this is my connection between raspberry pi and my matrix.led
Pin led.matrix to - raspberrypi 1 VCC +5V - 2 5V0 2 GND Ground - 6 GND 3 DIN Data In - 19 GPIO 10 (MOSI) 4 CS Chip Select - 24 GPIO 8 (SPI CS0) 5 CLK Clock - 23 GPIO 11 (SPI CLK)
.---
any help..? thanks for your support!
Do any of the LED's light up? Can you upload a photo? (you can drag & drop images into the comment box)
sure, the first picture is just with led.matrix connected to the raspberry pi.
and that other picture is the running sudo python matrix_demo.py, from directory luma.led_matrix/examples:
it's moving but doesn't show nothing clear to read
Looking at the device, it appears to be one of the 4-in-1 LED matrix devices - have you got a URL link where you bought it from?
I would try a couple of things:
Run the example script with the following params:
$ python examples/matrix_demo.py --cascaded=4 --block-orientation=90
or
$ python examples/matrix_demo.py --cascaded=4 --block-orientation=-90
sure, i bought the led matrix in aliexpress: https://es.aliexpress.com/item/Free-Shipping-MAX7219-Dot-Matrix-Module-For-Arduino-Microcontroller-4-In-One-Display-with-5P-Line/32622349402.html (more than 40days waiting for this... :-(
I have changed the usb power for other one, but the issue is the same.. I also changed the VCC connection from 5V0 to 3VC and nothing change... :-/
and i have executed the example script with the params you have provide and nothing change...
what is the verdict? defective
Are there two 5-pin headers? (i.e. one at each end?)
Make sure you connect the wires to the end that shows as --> IN
Something else to check: if you take off one of the LED matrixes from the PCB, and have a look at the chip, it should show something like:
Does the chip markings show MAX7219CNG or MAX7219ENG ?
fixed the issue, seems that it was incorrectly connected, i have swapped the pins of leds and now works!!!
thank you so much @rm-hull for your support!!!! by the way, any python file with rss and clock..?
Have a look at https://github.com/rm-hull/luma.examples/blob/master/examples/weather.py
You should be able to run it with:
$ python examples/weather.py -f conf/max7219.conf --block-orientation=90 --width=32
If 90 doesnt work for block orientation, try -90
thanks!! I will take a look this file... can i ask if I have any doubt with this..?
Please make an example of the clock (timedate) to the 4-in-1 LED matrix devices.
Type of Raspberry Pi
raspberry pi model b+
Linux Kernel version
linux 4.4.34+ #930 Wed Nov 23 15:12:30 GMT 2016 armv6l GNU/Linux
Expected behaviour
hi, i have this issue executing any python file : No module named max7219.led
and after install i try to execute the example:
this is the code into the python file:
any help..?