I want to share with you two abstractions that work with Arduinos' Serial.write function, [pack_comport] and [read_analog_ins]. It makes the use of the Arduino easy, where the only parameter you'll need to change in Arduinos' code is a couple of number at the top of the code provided (number of analog and digital pins used).
The abstractions pack the process of receiving and assembling the values from the Arduino, and it's easy to use, almost out of the box...
Check Arduino sketches and Pd help patches for info
https://github.com/alexandros301/pack_comport_read_analog_ins
-
[pack_comport] and [read_analog_ins] abstractions to work with Arduinos' Serial.write function