forked from ManiacalLabs/BiblioPixelSmartMatrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
47 lines (40 loc) · 1.11 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from BiblioPixelAnimations.matrix.bloom import Bloom
from BiblioPixelAnimations.matrix.Text import ScrollText
from bibliopixel.drivers.serial.driver import TeensySmartMatrix
import bibliopixel.colors as colors
from bibliopixel.layout import Matrix
import bibliopixel.log as log
import time
log.setLogLevel(log.DEBUG)
w = 64
h = 32
driver = TeensySmartMatrix(w, h)
led = Matrix(driver, width=w, height=h,
serpentine=False, threadedUpdate=False)
# load channel test animation
# from bibliopixel.animation import MatrixCalibrationTest
# anim = MatrixCalibrationTest(led)
# anim.run(fps=30)
try:
anim = Bloom(led)
anim.run(amt=6, fps=10)
except:
led.all_off()
led.update()
time.sleep(1)
led.all_off()
led.update()
# anim = ScrollText(led, "Maniacal Labs Rules!", xPos = 128, yPos = 0, color = colors.Red, bgcolor = colors.Off, size = 4)
# try:
# anim.run(amt=6, fps=30)
# finally:
# led.all_off()
# led.update()
# time.sleep(1)
#
# led.all_off()
# led.update()a
# time.sleep(1)
# led.all_off()
# led.update()
# time.sleep(1)