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
for (int x = 0; x < 4; x++) // LED pins are outputs
{
pinMode(ledpin[x], OUTPUT);
pinMode(button[x], INPUT_PULLUP); // button pins are inputs
}