Ok, I will give that code a shot.
Sorry, I should have specified that I am using an Arduino MegaADK. I do have a PortA.