first commit grahic protest sign code and sample graphics
This commit is contained in:
parent
6d6d4bfd39
commit
2e45973db7
6 changed files with 34 additions and 0 deletions
BIN
RGB_Matrix_Protest_Sign/images/BLM.bmp
Executable file
BIN
RGB_Matrix_Protest_Sign/images/BLM.bmp
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
BIN
RGB_Matrix_Protest_Sign/images/BLM_gradient.bmp
Executable file
BIN
RGB_Matrix_Protest_Sign/images/BLM_gradient.bmp
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
BIN
RGB_Matrix_Protest_Sign/images/PRD01.bmp
Executable file
BIN
RGB_Matrix_Protest_Sign/images/PRD01.bmp
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
BIN
RGB_Matrix_Protest_Sign/images/PRD_Flag.bmp
Executable file
BIN
RGB_Matrix_Protest_Sign/images/PRD_Flag.bmp
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
BIN
RGB_Matrix_Protest_Sign/images/TRN.bmp
Executable file
BIN
RGB_Matrix_Protest_Sign/images/TRN.bmp
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
34
RGB_Matrix_Protest_Sign/protest_sign_graphical.py
Normal file
34
RGB_Matrix_Protest_Sign/protest_sign_graphical.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import board
|
||||
import displayio
|
||||
import framebufferio
|
||||
import rgbmatrix
|
||||
from adafruit_slideshow import SlideShow
|
||||
|
||||
displayio.release_displays()
|
||||
matrix = rgbmatrix.RGBMatrix(
|
||||
width=64,
|
||||
height=32,
|
||||
bit_depth=5,
|
||||
rgb_pins=[board.D6, board.D5, board.D9, board.D11, board.D10, board.D12],
|
||||
addr_pins=[board.A5, board.A4, board.A3, board.A2],
|
||||
clock_pin=board.D13,
|
||||
latch_pin=board.D0,
|
||||
output_enable_pin=board.D1,
|
||||
)
|
||||
|
||||
display = framebufferio.FramebufferDisplay(matrix, auto_refresh=True)
|
||||
|
||||
slideshow = SlideShow(
|
||||
display,
|
||||
backlight_pwm=None,
|
||||
folder="/images",
|
||||
loop=True,
|
||||
order=0,
|
||||
fade_effect=False,
|
||||
dwell=8,
|
||||
auto_advance=True,
|
||||
)
|
||||
|
||||
|
||||
while slideshow.update():
|
||||
pass
|
||||
Loading…
Reference in a new issue