#NEWLINE# @ speed . setter #NEWLINE# def speed( self , speed ) : #NEWLINE# #INDENT# if ( ( int ( speed ) > 100 ) or ( int ( speed ) < 0 ) ) : #NEWLINE# #INDENT# raise InvalidPercentageException #NEWLINE# #UNINDENT# self . _speed = speed #NEWLINE# self . _pin . write ( ( speed / 100.0 ) ) #NEWLINE# self . emit ( 'change' , self )