We are going to create a very small library and test it with a basic circuit including six LEDs that are not multiplexed.
Here is the circuit. It basically contains six LEDs wired to Arduino:
The circuit diagram is shown as follows:
I won't discuss the circuit itself, except to mention that I put in a 1 kΩ resistor. I took the worst case where all LEDs would be switched on at the same time. This would drive ...