try
#define INPUT_PIN1 3
#define INPUT_PIN2 4
#define OUTPUT_PIN 5
pinMode(INPUT_PIN1, INPUT);
pinMode(INPUT_PIN2, INPUT);
pinMode(OUTPUT_PIN, OUTPUT);
has the side benefit that if you change pins, you have one line to change ![]()
try
#define INPUT_PIN1 3
#define INPUT_PIN2 4
#define OUTPUT_PIN 5
pinMode(INPUT_PIN1, INPUT);
pinMode(INPUT_PIN2, INPUT);
pinMode(OUTPUT_PIN, OUTPUT);
has the side benefit that if you change pins, you have one line to change ![]()