4 ledice — Arduino Uno simulation

4 ledice

An interactive Arduino Uno circuit simulation you can run free in your browser on Velxio, by rpppsts.

Components

Sketch code

// 4-bit binary counter on LEDs

int rLed=2;
int yLed=3;
int gLEd=4;

void setup() { 
  pinMode(rLed, OUTPUT);
  pinMode(yLed, OUTPUT);
  pinMode(gLEd, OUTPUT);
}

void loop() {

  digitalWrite(rLed, HIGH);
  delay(1000);
  digitalWrite(rLed, LOW);
  delay(1000);

  
  }

More projects by rpppsts