I tried with your examples. I wrote a code to measure water level (below it is posted). It did work with 'Proteus' software well, but not in real lcd+pic set up. I can't find the reason behind that.
...
I'm doing a project with involving displaying of water level of a tank on a lcd 16x2 module. I'm a having problem with writing the code in CCS C.
I don't know which libraries should I use, whi ...