#NEWLINE# def scrollDisplay( self , amount ) : #NEWLINE# #INDENT# ' Scrolls the whole display the given amount. Positive numbers scroll \n        the display to the right, negative to the left. ' #NEWLINE# if ( self > 0 ) : #NEWLINE# #INDENT# dir = self . SHIFT_RIGHT #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# dir = 0 #NEWLINE# #UNINDENT# for i in range ( abs ( amount ) ) : #NEWLINE# #INDENT# self . writeCommand ( ( ( self . COMMAND_SHIFT | self . SHIFT_DISPLAY ) | dir ) )