Hi T,In your existing code you send string data by one byte. One byte or char can hold decimal value 0-255. Unsigned integer type (in PicBasic PRO named WORD) of data (usually is two bytes long) holds 0-65535, in PicBasic PRO exist also LONG type which is 4 bytes long and holds +/- 2million. This means you can send any value trough SPI by one byte using same method you sent the byte array (string).
I'm familiar with BIT,BYTE,WORD,LONG and STRING, but I'm a bit stuck regarding the formatting of the BYTE I want to send to PIC2.
In the CODE is: msg1 = "1234" + Cr + Lf but the 1234 is typed, and I want to know how to send a BYTE which is constantly being changed, as in incoming DATA.
C