If you are interested in using the Dynamixel2Arduino library instead, this post may be of help to you.