C Code

I was curious if there was a collection of C code (MPLAB flavor - not Easy C) that various folks have written for their bot? I am having a few quirky issues getting analog sensors to work with digital inputs and would find it helpful to review other folks programming solutions. (I have posted a more detailed question in the Tech. Question forum.) When I get my code working, I will gladly share it and what I have learned thus far.