Raspberry Pi 4 Blink LED and Switch Control
In this video, I quickly flash an SD card with the Raspbian operating system for my newly bought Raspberry Pi 4. Then, setup the raspberry Pi 4, write a python script to automatically turn an LED on and off. A switch is added to the circuit and the script is modified to manually turn on the LED using the script.
BlinkLED script to automatically turn LED on and off:
Switch controlled LED: