const int numButtons = 8; int buttonPins[numButtons] = {19, 20, 18, 21, 5, 22, 16, 17}; int buttonNums[numButtons] = {1, 2, 3, 4, 5, 6, 7, 8}; void setup() { for (int i=0; i