Updated Arduino example code to be Arduino 1.0+ compatible

As mentioned in issue #2147 the Arduino some code examples for the Serial library are no longer compatible with Arduino 1.0+ since they use the abandoned 'BYTE' keyword.