-
Notifications
You must be signed in to change notification settings - Fork 16
/
codeFullLED.py
61 lines (49 loc) · 1.4 KB
/
codeFullLED.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# CircuitPython demo - NeoPixel
from time import sleep
import board
from random import randrange
from matrix_LED_utils import *
import matrix_LED_utils
n = 1
while True:
# anima_from_gimp("/8x8-" + str(n) + ".data")
# # sleep(0.25)
# n += 1
# if(n == 5):
# n = 1
anima_from_gimp("heart.data")
anima_from_gimp("black.data")
# while True:
# lin_sel(3-1)
# lin_sel(6-1)
# col_sel(3-1)
# col_sel(6-1)
# put_pixel(0,0,YELLOW)
# put_pixel(0,7,VIOLET)
# put_pixel(7,0,BLUE)
# put_pixel(7,7,ORANGE)
# square(6,3,PURPLE,2)
# pixels.show()
# anima_square(3,color1=BLUE,color2=BLUE)
# for i in range(0,7):
# lin_sel(i,color1=rainbow_colors[i])
# pixels.show()
# clear()
# for i in range(0,7):
# col_sel(i,color1=rainbow_colors[i])
# pixels.show()
# clear()
# for i in range(num_col/2):
# anima_square(i,
# color1=rainbow_colors[randrange(6)],
# color2=rainbow_colors[randrange(6)] )
# clear()
# for i in range(num_col):
# lin_sel(i,
# color1=rainbow_colors[randrange(6)],
# color2=rainbow_colors[randrange(6)] )
# clear()
# col_sel(i,
# color1=rainbow_colors[randrange(6)],
# color2=rainbow_colors[randrange(6)] )
# clear()