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.
Hey you can also group your inputs onto 1 port and read them all at once. For example put you inputs on digital pins 8,9,10. According to the "Ardino pin mapping" document these correspond to PB0, PB1,PB2. These can be read in mass with "inputvariable = PINB" Then shift or masks out the high bits.
This is more difficult to understand than the other posts but it has the advantage of reading all 3 inputs at the same instant. (in case you care)
As has been mentioned check out the binary math tutorials.