Hi Ada fans. Happy Halloween 🦇 Made an LED Matrix Display (128 x 64) some time ago for fun and set it up for a Halloween window event. Enjoy 🎃
Halloween display this morning 31 October 2024
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Azzura
- Posts: 49
- Joined: Mon Nov 29, 2021 9:20 pm
- johnpark
- Posts: 999
- Joined: Wed Mar 25, 2009 2:15 pm
Re: Halloween display this morning 31 October 2024
This looks great! Can you give some details on the enclosure and build?
- Azzura
- Posts: 49
- Joined: Mon Nov 29, 2021 9:20 pm
Re: Halloween display this morning 31 October 2024
Hi John,
I do apologise for my slow response, I have been on an amazing South East Asia journey and I am now in Canada sliding down snowy ☃ slopes, I have only today logged in and seen your post 😔.
The box is made up of two PVC junction boxes painted black. Inside is an Interstate75 board connected to two 64x64 HUB75 LED displays config 128x64. I will install the IR proximity sensor soon so that the display activates when something passes by. (It made the cat jump ... ☺)
I set this up to run a Slideshow, coded as per "Creating Slideshows in CircuitPython by Anne Barela", worked super good ☺.
However, when I moved from the slideshow to "Code the Sprite Sheet Animation Display" by yours truly, I ran into an error I have not seen before. The code lines (I am presuming) which appear to be the area of interest.
# --- Display setup ---
matrix = Matrix(bit_depth=4)
sprite_group = displayio.Group()
matrix.display.root_group = sprite_group
The "display" attribute has me confused.
I have added some images for clarity, trust they help. I ported the RGBMatrix config I used in the slideshow over to the sprite code and incurred this error. I would truly appreciate your advise.
Again, apologies for the late reply.
CURRENT STATUS.
CP version 9.2.1
I have updated all of the library folders and files listed in the sprite project library with the latest CP library folders/files accordingly.
Background History:
SLIDESHOW:
MATRIX = rgbmatrix.RGBMatrix(
width=64,
height=32,
bit_depth=4, tile=1, serpentine=False,
rgb_pins=[board.R0, board.G0, board.B0, board.R1, board.G1, board.B1],
addr_pins=[board.ROW_A, board.ROW_B, board.ROW_C, board.ROW_D],
clock_pin=board.CLK,
latch_pin=board.LAT,
output_enable_pin=board.OE,
)
DISPLAY = framebufferio.FramebufferDisplay(MATRIX, auto_refresh=False, rotation=0)
slideshow = SlideShow(DISPLAY,
folder="/images",
loop=True,
order=PlayBackOrder.ALPHABETICAL,
dwell=1.0)
while slideshow.update():
pass
******************************
SPRITE SHEET ANIMATION: not working due to attribute error
matrix = rgbmatrix.RGBMatrix(
width=64,
height=32,
bit_depth=4, tile=1, serpentine=False,
rgb_pins=[board.R0, board.G0, board.B0, board.R1, board.G1, board.B1],
addr_pins=[board.ROW_A, board.ROW_B, board.ROW_C, board.ROW_D],
clock_pin=board.CLK,
latch_pin=board.LAT,
output_enable_pin=board.OE,
)
display = framebufferio.FramebufferDisplay(matrix, auto_refresh=False, rotation=0)
sprite_group = displayio.Group()
matrix.display.root_group = sprite_group
I do apologise for my slow response, I have been on an amazing South East Asia journey and I am now in Canada sliding down snowy ☃ slopes, I have only today logged in and seen your post 😔.
The box is made up of two PVC junction boxes painted black. Inside is an Interstate75 board connected to two 64x64 HUB75 LED displays config 128x64. I will install the IR proximity sensor soon so that the display activates when something passes by. (It made the cat jump ... ☺)
I set this up to run a Slideshow, coded as per "Creating Slideshows in CircuitPython by Anne Barela", worked super good ☺.
However, when I moved from the slideshow to "Code the Sprite Sheet Animation Display" by yours truly, I ran into an error I have not seen before. The code lines (I am presuming) which appear to be the area of interest.
# --- Display setup ---
matrix = Matrix(bit_depth=4)
sprite_group = displayio.Group()
matrix.display.root_group = sprite_group
The "display" attribute has me confused.
I have added some images for clarity, trust they help. I ported the RGBMatrix config I used in the slideshow over to the sprite code and incurred this error. I would truly appreciate your advise.
Again, apologies for the late reply.
CURRENT STATUS.
CP version 9.2.1
I have updated all of the library folders and files listed in the sprite project library with the latest CP library folders/files accordingly.
Background History:
SLIDESHOW:
MATRIX = rgbmatrix.RGBMatrix(
width=64,
height=32,
bit_depth=4, tile=1, serpentine=False,
rgb_pins=[board.R0, board.G0, board.B0, board.R1, board.G1, board.B1],
addr_pins=[board.ROW_A, board.ROW_B, board.ROW_C, board.ROW_D],
clock_pin=board.CLK,
latch_pin=board.LAT,
output_enable_pin=board.OE,
)
DISPLAY = framebufferio.FramebufferDisplay(MATRIX, auto_refresh=False, rotation=0)
slideshow = SlideShow(DISPLAY,
folder="/images",
loop=True,
order=PlayBackOrder.ALPHABETICAL,
dwell=1.0)
while slideshow.update():
pass
******************************
SPRITE SHEET ANIMATION: not working due to attribute error
matrix = rgbmatrix.RGBMatrix(
width=64,
height=32,
bit_depth=4, tile=1, serpentine=False,
rgb_pins=[board.R0, board.G0, board.B0, board.R1, board.G1, board.B1],
addr_pins=[board.ROW_A, board.ROW_B, board.ROW_C, board.ROW_D],
clock_pin=board.CLK,
latch_pin=board.LAT,
output_enable_pin=board.OE,
)
display = framebufferio.FramebufferDisplay(matrix, auto_refresh=False, rotation=0)
sprite_group = displayio.Group()
matrix.display.root_group = sprite_group
Please be positive and constructive with your questions and comments.