How to add simple Servo code from a Tutorial?

  for (int x = 0; x < 4; x++) // LED pins are outputs
  {
    pinMode(ledpin[x], OUTPUT);
    pinMode(button[x], INPUT_PULLUP);  // button pins are inputs
  }

1 Like