Proyecto 1 — Arduino Uno simulation

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

Components

Sketch code

// Blink LED Example
// Toggles the built-in LED on pin 13
const int BUTTON_PING = 2;
const int LED_PING = 13;


void setup() {
  pinMode(LED_PING, OUTPUT);
  pinMode(BUTTON_PING, INPUT_PULLUP);
}

void loop() {
  int buttonState = digitalRead(BUTTON_PING);
  if (buttonState == LOW) {
    digitalWrite(13, HIGH);
  } else {
    digitalWrite(13, LOW);
  }
}

More projects by dave