Right for a project i am trying to control 5 LED's using VB. I have the VB code done and it creates a 5bit binary number that i am able to pass to arduino.
What i want to know is how do i split this string up into the separate bits so that i can process each one (which i know how to do)
Walking through bits can be done with bitRead(), http://arduino.cc/en/Reference/BitRead
But you have to convert the serial data to a integer (or a byte).