Chargement...
Video bientot disponible
## PWM — Pulse Width Modulation
Simuler une tension variable en faisant varier la duree des impulsions.
## Applications
Variation de luminosite LED, vitesse moteur, servo-moteur.
## Code Python
pwm = GPIO.PWM(17, 100)
pwm.start(0)
for duty in range(0, 101, 5):
pwm.ChangeDutyCycle(duty)
time.sleep(0.1)
pwm.stop()