Thanks a lot simond. I posted the same question on Ladyada's forums. Someone replied with a similar solution:
int val; // This is a 16 bit value
byte msb; // 8 bit variable to hold the most significant byte
byte lsb; // 8 bit variable to hold the least significant byte
loop() {
// some code
// goes
// here
val = somedata;
lsb = (byte)(val & 0xff);
msb = (byte)(val >>

;
Serial.print(msb);
Serial.print(lsb);
// more code
// goes
// here
}
This all looks like it should work. I'm still trying to decipher it thought .... not sure what all the signs are actually doing ... >> , << , & , 0xff , 0x03 , |
thanks a lot,
Phil