projx — Arduino Mega simulation

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

Components

Sketch code

const int PIN = 2;

void setup() {
  Serial.begin(115200);
  pinMode(PIN, INPUT_PULLUP);
}

void loop() {

  Serial.print("Pulsador: ");

  if (digitalRead(PIN) == HIGH) {
    Serial.println("LIBERADO");
  } else {
    Serial.println("PULSADO");
  }

  delay(300);
}

More projects by dpp123