Switching on an LED by a command is one thing. The other is controlling the LED programmatically. In this recipe, we are going to write a real program in C and in Python to switch the LED on and off periodically.
We require the very same breadboard construction from the previous recipe:
Construct the circuit as we have seen previously.
Once we have the construction, we can proceed with the steps given in the following sections.
We start by programming the LED in the classic C programming language.