Grumpy_Mike:
Just a comment on the general libary. In my oppinion it is poor because it uses global public variables to communicate.
There should be a call to set the resoloution, and a call that returns a reading. There also should be some way to set what analogue port to use.
I'm not sure what you mean. In eRCaGuy_analogReadXXbit.cpp, all input parameters are local to one function only.