Skip to content

Commit 2e45973

Browse files
committed
first commit grahic protest sign code and sample graphics
1 parent 6d6d4bf commit 2e45973

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed
6.05 KB
Binary file not shown.
6.05 KB
Binary file not shown.
6.05 KB
Binary file not shown.
6.05 KB
Binary file not shown.
6.05 KB
Binary file not shown.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import board
2+
import displayio
3+
import framebufferio
4+
import rgbmatrix
5+
from adafruit_slideshow import SlideShow
6+
7+
displayio.release_displays()
8+
matrix = rgbmatrix.RGBMatrix(
9+
width=64,
10+
height=32,
11+
bit_depth=5,
12+
rgb_pins=[board.D6, board.D5, board.D9, board.D11, board.D10, board.D12],
13+
addr_pins=[board.A5, board.A4, board.A3, board.A2],
14+
clock_pin=board.D13,
15+
latch_pin=board.D0,
16+
output_enable_pin=board.D1,
17+
)
18+
19+
display = framebufferio.FramebufferDisplay(matrix, auto_refresh=True)
20+
21+
slideshow = SlideShow(
22+
display,
23+
backlight_pwm=None,
24+
folder="/images",
25+
loop=True,
26+
order=0,
27+
fade_effect=False,
28+
dwell=8,
29+
auto_advance=True,
30+
)
31+
32+
33+
while slideshow.update():
34+
pass

0 commit comments

Comments
 (0)