This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define screen size | |
DISPLAY_WIDTH = 32 * 1 #32 pixels x 1 displays | |
DISPLAY_HEIGHT = 16 | |
# Define a screen that has (width X height) numbers of 'pixels'. Each pixel is an RGB triplet | |
# with max value of 255. Even though our actual screen is 2-D it is stored as a 1-D array. Pixels | |
# 0 - 31 are the first row, 32 - 63 are the second row, etc. | |
screen = [[0,0,0] for x in xrange(self.DISPLAY_WIDTH*self.DISPLAY_HEIGHT)] |