I have a Arduino Diecimila up and running.
3 pins on the Arduino are setup as inputs.
I have a device connected to the Arduino on the 3 input pins.
The device ouputs a single integer value of 1 (High) or 0 (Low).
So Arduino sees 3 values say
input1 sees 1
input2 sees 0
input3 sees 1
How can I assign these values to a single variable?
Or in other words if I have a variable assigned to each value how do I concatenate them so that I have a single string that looks like this: 101
Based on that single string I would then do comparisons like;
if 101 do this, if 111 do this, if 001 do this.