User manual
58
Components required:
1x breadboard
1x LED yellow
1x LED red
2x 220-ohm series resistor
3x connecting wire
Fig. 6.5: A second LED at GPIO port 25.
The programme leddimmen02.py dims one of the LED using cycles of light and dark phases, while the other
LED together with the first LED light gets brighter, but in another cycle it does not get darker, instead its
brightness intensifies starting from 0 and it is also flickers quickly.
import RPi.GPIO as GPIO
import time