sensorDigitalIn weird values
I am trying to write some code to make the NXTCam work on the VEX Cortex by bit-banging I2C. I can see perfectly fine I2C messages being sent back and forth (using a protocol analyser), only the firmware is not really digging it.
This keeps spitting out values between 245 and 246. Is there a reason this would be anything other than 0 or 1, seeing as it's a digital in? SDA has pull-ups that should pull it to +5V when it is set to sensorDigitalIn. I have also tried increasing the wait time, nothing makes a difference.
I've tried this with both a HT Colour Sensor V2 and the NXTCam V3, both give me the similar results.
I am using ROBOTC 3.13b.
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page