Generates a truth table for a n-input circuit and tests the output circuit for every combination of input values. Reports the output as a boolean and a voltage.
int input_pins[] = {
8, // a - green
9, // b - yellow
10, // c - blue
11 // d - black
};
int result_pin = 4; // White
// Default analog read pin is A0 - also white
Make sure that the serial message box is set to "No Line Ending" so that it doesn't test 0 after each read.