<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>i used Serial.write in the arduino sketch so i should be getting 4</p>
<p>8 bit bytes. i will check your examples and see how it goes</p>
<p><br>
</p>
<p>r.y</p>
<br>
<br>
<div style="color: rgb(0, 0, 0); ">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De:</b> Alexandros Drymonitis <adrcki@gmail.com><br>
<b>Enviado:</b> viernes, 23 de octubre de 2015 10:07 a. m.<br>
<b>Para:</b> ray Y; PD-list<br>
<b>Asunto:</b> Re: [PD] routing serial data</font>
<div> </div>
</div>
<div>
<div dir="ltr">Including list too<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Oct 23, 2015 at 8:01 PM, ray Y <span dir="ltr"><<a href="mailto:raybuay@hotmail.com" target="_blank">raybuay@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt; color:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,Helvetica,sans-serif">
<p>the print object at the output of comport (for reference)</p>
<p><br>
</p>
<p>yeah, that was the first thing i tried but i don't know why it does not</p>
<p>work with the serial stream like it does with a normal list. i tried adding</p>
<p>commas between the values in the arduino sketch but no chance of</p>
<p>splitting the data into each atom in PD</p>
<p><br>
</p>
</div>
</div>
</blockquote>
<div>[comport] spits values one by one (actually bytes, so if a value is greater than one byte, it will be split, depending on the way you'll print it from the Arduino - Serial.print or Serial.write). you'll have to assemble them into a list (check help patch
 of [list] to see how to make a growing list), or make a counter and bang it on every output of [comport], pack the [comport] value with the counter value prepended and use [route].<br>
</div>
<div>I've made some abstractions to facilitate the communication between the Arduino and Pd, they'll might work for you. There're here
<a href="https://github.com/alexdrymonitis/Arduino_Pd">https://github.com/alexdrymonitis/Arduino_Pd</a><br>
</div>
<div>The [serial_print] abstraction can use the comma as a value delimiter (if you're on Pd-extended, use [serial_print_extended] instead).
<br>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>