#NEWLINE# def on( self , brightness = 255 , fade_ms = 0 , start = 0 ) : #NEWLINE# #INDENT# if ( brightness >= 255 ) : #NEWLINE# #INDENT# self . log . debug ( 'Turning On GI String' ) #NEWLINE# self . send ( ( ( 'GI:' + self . number ) + ',FF' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( fade_ms == 0 ) : #NEWLINE# #INDENT# self . off ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# brightness = str ( hex ( brightness ) ) [ 2 : ] #NEWLINE# self . send ( ( ( ( 'GI:' + self . number ) + ',' ) + brightness ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . last_time_changed = time . time ( )