#NEWLINE# def writeRegister( self , addr , value ) : #NEWLINE# #INDENT# ' Writes the given value to the given register. ' #NEWLINE# self . spi . write ( self . cs , [ ( addr & 127 ) , ( addr & 255 ) ] )