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)
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)
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)
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)
def showstaticmatrix(matrix): for row in range(8): for col in range(80): ldp.colourshift(matrix[row][col]) ldp.showrow(row)
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)
def showmatrix(): ldp.displayoff() for row in reversed(range(8)): for col in reversed(range(80)): ldp.colourshift(matrix[row][col]) ldp.showrow(row)
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)