#NEWLINE# def writeList( self , reg , list ) : #NEWLINE# #INDENT# 'Writes an array of bytes using I2C format' #NEWLINE# try : #NEWLINE# #INDENT# if self . debug : #NEWLINE# #INDENT# print ( ( 'I2C: Writing list to register 0x%02X:' % reg ) ) #NEWLINE# print ( list ) #NEWLINE# #UNINDENT# self . bus . write_i2c_block_data ( self . address , self , list ) #NEWLINE# #UNINDENT# except IOError as err : #NEWLINE# #INDENT# return self . errMsg ( )