2
This is kind of a python question, but is dependent on the Pi specific RPi.GPIO.
The GPIO.PWM creates a thread which is responsible for the PWM operation.
This stores data in a structure, which is (eventually) destroyed when you call PWM.stop().
You don't do this, but it will happen when the variables are garbage collected on function exit.
Effectively the ...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
pi-3 × 3358raspbian × 799
python × 278
wifi × 276
gpio × 268
networking × 187
raspbian-stretch × 125
bluetooth × 122
pi-2 × 116
usb × 111
boot × 104
ssh × 98
sd-card × 97
raspbian-jessie × 93
rpi.gpio × 91
serial × 83
linux × 80
hardware × 78
i2c × 72
audio × 71
power × 71
ubuntu × 71
power-supply × 70
ethernet × 70
python-3 × 65