Пример #1
0
 def showbufferRev(self):
     if slowdownscroll:
         time.sleep(.025)
     for row in reversed(range(self.HEIGHT)):
         for col in reversed(range(self.WIDTH)):
             ldp.colourshift(self.buffer[row][col])
         ldp.showrow(row)
Пример #2
0
def showmatrix(n):
    getnumber(n)

    for row in range(16):
        for col in range(64):
            ldp.colourshift(matrix[row][col])
        ldp.showrow(row)
    time.sleep(0.001)
Пример #3
0
def showmatrix(n):
	getnumber(n)
	while GPIO.input(35)==0 and GPIO.input(37)==0 and GPIO.input(37)==0:
		for row in range(16):
			for col in range(64):
				ldp.colourshift(matrix[row][col])
			ldp.showrow(row)
		sleep(0.001)
	getnumber("CLEANUP")
Пример #4
0
    def showbuffer(self):
        """function to read the matrix array and output the values to the display device"""
        self.off()

        hscope, wscope = xrange(self.HEIGHT), xrange(self.WIDTH)

        for row in range(self.HEIGHT):
            for col in range(self.WIDTH):
                ldp.colourshift(self.buffer[row][col])
            ldp.showrow(row)
Пример #5
0
    def showbuffer(self):
        """function to read the matrix array and output the values to the display device"""
        self.off()

        hscope, wscope = xrange(self.HEIGHT), xrange(self.WIDTH)

        for row in range(self.HEIGHT):
            for col in range(self.WIDTH):
                ldp.colourshift(self.buffer[row][col])
            ldp.showrow(row)
Пример #6
0
def showmatrix():
	for row in range(16):
		for col in range(64):
			#if ((matrix[row][col])==2):
			#	print (matrix[row][col]),
			#else:
			#	print " ",
			ldp.colourshift(matrix[row][col])
		#print ""
		ldp.showrow(row)
Пример #7
0
 def showstaticmatrix(matrix):
     for row in range(8):
         for col in range(80):
             ldp.colourshift(matrix[row][col])
         ldp.showrow(row)
Пример #8
0
 def showscrollmatrix(matrix):
     # ldp.displayoff()
     for row in reversed(range(8)):
         for col in reversed(range(80)):
             ldp.colourshift(matrix[row][col])
         ldp.showrow(row)
Пример #9
0
 def showmatrix():
     ldp.displayoff()
     for row in reversed(range(8)):
         for col in reversed(range(80)):
             ldp.colourshift(matrix[row][col])
         ldp.showrow(row)
Пример #10
0
 def showbufferRev(self):
     for row in reversed(range(self.HEIGHT)):
         for col in reversed(range(self.WIDTH)):
             ldp.colourshift(self.buffer[row][col])
         ldp.showrow(row)
def showmatrix2():
	for row in range(8):
		for col in range(80):
			ldp.colourshift(matrix[row][col])
		ldp.showrow(row)
Пример #12
0
 def showbufferRev(self):
     for row in reversed(range(self.HEIGHT)):
         for col in reversed(range(self.WIDTH)):
             ldp.colourshift(self.buffer[row][col])
         ldp.showrow(row)