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)
Beispiel #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)
Beispiel #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")
    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)
Beispiel #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)
Beispiel #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)
Beispiel #7
0
 def showstaticmatrix(matrix):
     for row in range(8):
         for col in range(80):
             ldp.colourshift(matrix[row][col])
         ldp.showrow(row)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)