I don't know if this is because we tried on a vex controller, but when we set up the IR sensor, everything was inverted. So we got +voltage out of every pwm when there was no button press, and then when there was a button press, we had every input but the needed one drop in voltage to 0. I am startng to think that we have it miswired, but this is what the pwms look like (1 = +voltage, 0 = 0 voltage)
Code:
no button: 1111
1st button: 1000
2nd button: 0100
3rd button: 0010
4th button: 0001
The only thing about this is that you cant just go "If(digin1 == 1)" because they default to 1!! We just use a bunch of ands and checked for the pattern, but it seems odd that nobody else is reporting this. What is the way to properly wire it? Or do we have it the correct way?