Skip to content

Commit 10b1a88

Browse files
authored
Merge pull request adafruit#1146 from jedgarpark/protest-sign
first commit grahic protest sign code and sample graphics
2 parents 6d6d4bf + 2e45973 commit 10b1a88

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)