Re: Writing Outputs of Hitechnic Prototype board
Sorry for the late reply. I just got around to programming the prototype board myself.
One thing I noticed about Xander's driver is that I always get an I2C error on the first few I2C calls. It don't see anything wrong in the driver so its probably in the firmware...or just unavoidable in general.
I found that it is good to try to read from the device a few times before making the first write operation.
Very likely, your write operation for setting the IO directions isn't going through (you'd need a logic analyzer or scope to know for sure). I got the same results as you initially. Doing dummy read ops fixed the problem for me.
I've now tested digital inputs, outputs and reading analog...everything about this driver seems to work for me.
Also on his blog Xander has done some speed testing and has posted a 0.4 version that includes reading all ADC simultaneously.http://mightor.wordpress.com/