Hi Dave,
That looks OK to me. Don't forget that if your pin assignment differs from the "standard" shown in the manual (I haven't checked but I think yours is different) you need to DEFINE that as shown in the manual. Simply copy the complete DEFINE-block to your code and change it to match your setup.

/Henrik.