Breadboarding: Connecting 14 LEDs and To Push Buttons to the Microcontroller
Share
7 LEDs are connected to PORTB on pins 0 to 6 and a push button is connected to pin 7 on that port. On PORTD, 7 LEDS are connected to pins 0 to 6 and one push button is connected to pin 7. Resistors are connected in series with the LEDs to limit the current so the LEDs don't burn out.