Pls check the link below and have a look at tha application notes, sample codes etc.

Source code is not supported by Parallax, but is offered as a free download.
...