{{bloc-etroit|text=In addition to turning LEDs on and off, it is also possible to control the brightness of an LED using Pulse-Width Modulation (PWM), a common technique for obtaining variable output from a digital pin. This allows us to fade an LED:}}
+
+
[[Fichier:MicroPython-Hack-fading.jpg]]
+
+
== Composants nécessaires ==
+
Vous aurez besoin:
+
+
* {{pl|66|LED standard 5mm}}
+
* {{pl|45|Résistance de 100 Ohm}}
+
* {{pl|34|Des fils}}
+
* {{pl|53|Breadboard}} (optionnel mais facilite beaucoup les choses)