One Resistor with Two LEDs and the Nerdonic Exen Mini

Description: Two LEDs share the same ground pin with one resistor. Each LED turns ON/OFF separately separated by a 1 second delay.

Two LEDs Sharing Ground Pin with Nerdonic Exen Mini


1 –  Breadboard 400 Points
1 – Nerdonic Exen Mini
2 – LED
1 – 220 Ohm Resistor

Arduino Code:

#define led1 A1
#define led2 A4

void setup() {

  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);

void loop() {

  digitalWrite(led1, HIGH);
  digitalWrite(led2, LOW);

  digitalWrite(led1, LOW);
  digitalWrite(led2, HIGH);

Leave a Comment

+ 42 = 44