I am communicating arduino and PD.

Arduino is sending 5 Byte through the serial port.

I receive the values correctly.

These bytes are:

  • Byte 0 = 0x000000 To indicate the beginning of the message.

  • Bytes 1 and 2 = First int that i want to get.

  • Bytes 3 and 4 = First int that i want to get.

I would like to have a patch that have :

  • Inlet that will receive the serial value (bytes ).

  • Outlet 0 that will give me a integer value for one of the couples of bytes.

  • Outlet 1 that will the index of the integer ( 0 for the first couple of bites, 1 for the second).

Any help?