Skip to content

3 devices (7 digit max7219) cascaded with pico w #14052

Discussion options

You must be logged in to vote

Here is an example that work with two (and more) LED segments in a cascade way. Simply adjust the variable digit= with the correct number (8,16,24,....). Wiring see picture two.

hardware pin(2), GP1, SPI0 CSn -> CS
hardware pin(4), GP2, SPI0 SCK -> CLK
hardware pin(5), GP3, SPI0 TX -> DIN

import max7219
import time

display = max7219.SevenSegment(digits=16, scan_digits=8, cs=1, spi_bus=0, reverse=True)

display.clear()
display.text("ABCDEFGI12345678")

time.sleep(10)

display.clear()
display.text("22.33           ")

time.sleep(2)

display.clear()
display.message("Hello World")

time.sleep(2)

display.clear()


Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MagisterTechnicus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants