Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Driving more LEDs using lesser number of GPIOs

Driving more LEDs using lesser number of GPIOs

Anonymous
Not applicable
Question: How do I drive more LEDs using lesser number of GPIOs ?

 

Answer:

You can drive (n)*(n-1) number of LEDs by using n number of pins. In order to switch an LED ON or OFF you need to change the drive mode of the pins associated with the LEDs.

Here is an example for driving 6 LEDs using 3 pins. You can refer to the figure below for setting the drive modes and the schematic of the LEDs.

0 Likes
275 Views
Contributors