Skip to content

Commit 330bbd4

Browse files
committed
first blink test
1 parent 501c1ce commit 330bbd4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Adafruit_LEDBackpack/ex_8x8_andy.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/python
2+
3+
import time
4+
import datetime
5+
from Adafruit_8x8 import ColorEightByEight
6+
7+
# ===========================================================================
8+
# 8x8 Pixel Example
9+
# ===========================================================================
10+
grid = ColorEightByEight(address=0x70)
11+
12+
print "Press CTRL+Z to exit"
13+
14+
iter = 0
15+
grid.setPixel(1, 1)
16+
blinkRate(2)
17+
time.sleep(0.5)
18+
# Continually update the 8x8 display one pixel at a time
19+
# while(True):
20+
# iter += 1
21+
22+
# for x in range(0, 8):
23+
# for y in range(0, 8):
24+
# grid.setPixel(x, y, iter % 4 )
25+
# time.sleep(0.02)

0 commit comments

Comments
 (0)