changed BYTE reference to char to make compatible with Arduino 1.0 and above.