Follow the example in the manual. Just be sure to turn of any analog functions on the pins you use.