#NEWLINE# def __write( self , output , binary = False ) : #NEWLINE# #INDENT# "write data on the nodemcu port. If 'binary' is True the debug log\n        will show the intended output as hex, otherwise as string" #NEWLINE# if ( not output ) : #NEWLINE# #INDENT# log . debug ( 'write: %s' , output ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . debug ( 'write binary: %s' , ':' . join ( ( x . encode ( 'hex' ) for x in output ) ) ) #NEWLINE# #UNINDENT# self . _port . write ( output ) #NEWLINE# self . _port . flush ( )