Hi list,

apologizes, this looks like a FAQ, but I can't find anything in the
archives (wrong keywords ?) for this.

I just want to turn the bytes from comport output into a list.

>From a serial monitor, my program outputs:
"1.23 456 789\n"

I get it correctly into pd and it seems to work. But it looks ugly and
I feel it could be better done.

Is there some idiom/abstraction handy ?

Attached is the lousy patch I made.

Thanks for any hints !

-- 
Charles

#N canvas 2 47 841 751 10;
#X obj 342 239 list;
#X obj 246 239 list prepend;
#X obj 365 362 spigot;
#X msg 398 315 0;
#X obj 365 427 outlet;
#X obj 398 148 inlet;
#X obj 398 194 select 10;
#X msg 435 314 1;
#X obj 398 274 t b b b;
#X obj 425 428 print;
#X obj 365 392 moocow/bytes2any 128 10;
#X text 446 148 single byte;
#X text 287 428 list string;
#X connect 0 0 1 1;
#X connect 1 0 0 0;
#X connect 1 0 2 0;
#X connect 2 0 10 0;
#X connect 3 0 2 1;
#X connect 5 0 6 0;
#X connect 5 0 1 0;
#X connect 6 0 8 0;
#X connect 7 0 2 1;
#X connect 8 0 3 0;
#X connect 8 1 1 0;
#X connect 8 2 7 0;
#X connect 10 0 4 0;
#X connect 10 0 9 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to