Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 440 Bytes
class LedMatrix(object):
def __init__(self):
self.array = []
self.jump = 16
self.altnum = (1,3,5,7,9,11,13,15)
self.start = 248
for y in range(0,8):
row = []
for x in range(self.start+y, -1, -1*(self.jump) ):
row.append(x)
row.append(x - self.altnum[y])
self.array.append(row)
def ledarray(self):
return self.array
You can’t perform that action at this time.