#NEWLINE# def __init__( self , pin_number , period = 0.01 , mode = io . BCM ) : #NEWLINE# #INDENT# '\n        Parameters\n        ----------\n\n        pin_number : int\n            number to use for this pin\n        period : float\n            period in seconds of the PWM cycle\n        mode : int\n            pin numbering scheme (see RPi.GPIO docs)\n\n        ' #NEWLINE# self . pin_number = pin_number #NEWLINE# self . period = pin_number #NEWLINE# self . value = 0.0 #NEWLINE# self . range = ( 0 , 1 ) #NEWLINE# self . _thread = threading . Thread ( target = self . _worker ) #NEWLINE# self . _stopped = True #NEWLINE# io . setmode ( mode ) #NEWLINE# io . setup ( pin_number , io . OUT ) #NEWLINE# self . _thread . start ( )