Revision: 10281 http://pure-data.svn.sourceforge.net/pure-data/?rev=10281&view=rev Author: eighthave Date: 2008-09-08 21:32:51 +0000 (Mon, 08 Sep 2008)
Log Message: ----------- - moved protocol version and firmware name to the status outlet
Modified Paths: -------------- trunk/externals/hardware/arduino/arduino-test.pd trunk/externals/hardware/arduino/arduino.pd
Modified: trunk/externals/hardware/arduino/arduino-test.pd =================================================================== --- trunk/externals/hardware/arduino/arduino-test.pd 2008-09-08 21:25:04 UTC (rev 10280) +++ trunk/externals/hardware/arduino/arduino-test.pd 2008-09-08 21:32:51 UTC (rev 10281) @@ -1,4 +1,4 @@ -#N canvas 41 22 647 505 10; +#N canvas 62 22 647 505 10; #X obj 323 116 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577 0; #X obj 33 145 cnv 15 70 22 empty empty empty 20 12 0 14 -253938 -66577 @@ -51,8 +51,8 @@ #X text 158 131 serial port #; #X msg 221 172 close; #X obj 98 99 hsl 150 17 0 1 0 0 empty empty PWM_control_(0-1) -2 -6 -1 10 -225271 -1 -1 1200 0; -#X obj 277 312 tgl 15 1 empty empty empty 0 -6 0 8 -225271 -1 -1 1 +1 10 -225271 -1 -1 0 0; +#X obj 267 302 tgl 15 1 empty empty empty 0 -6 0 8 -225271 -1 -1 1 1; #X msg 437 220 digitalIns 0 0; #X msg 437 165 analogIns 0 0; @@ -115,9 +115,9 @@ #X floatatom 160 426 5 0 0 3 a3 - -; #X floatatom 206 426 5 0 0 3 a4 - -; #X floatatom 252 426 5 0 0 3 a5 - -; -#X text 300 291 <- argument sets port #; +#X text 290 271 <- argument sets port #; #X obj 40 71 hradio 15 1 0 14 empty empty empty 0 -6 0 8 -176124 -1 --1 6; +-1 0; #X text 148 57 7; #X text 42 57 0; #X text 189 57 10; @@ -176,7 +176,7 @@ #X msg 41 147 pwm 6 0.0805369; #X msg 319 155 info; #X msg 358 155 version; -#X obj 230 312 spigot; +#X obj 220 302 spigot; #X obj 363 77 tgl 15 1 empty empty 2 3 -6 1 12 -260818 -1 -1 1 1; #X obj 380 77 tgl 15 1 empty empty 3 3 -6 1 12 -260818 -1 -1 1 1; #X obj 397 77 tgl 15 1 empty empty 4 3 -6 1 12 -260818 -1 -1 1 1; @@ -190,7 +190,7 @@ #X obj 533 77 tgl 15 1 empty empty 12 0 -6 1 12 -260818 -1 -1 1 1; #X obj 550 77 tgl 15 1 empty empty 13 0 -6 1 12 -260818 -1 -1 1 1; #X text 328 44 turn on output mode for each pin (off=input); -#X msg 329 118 pinMode 6 1; +#X msg 329 118 pinMode 13 1; #N canvas 69 607 475 352 sending 0; #X obj 69 208 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577 0; @@ -332,7 +332,7 @@ #X text 32 224 pulse all outputs; #X floatatom 298 426 5 0 0 3 a6 - -; #X floatatom 344 426 5 0 0 3 a7 - -; -#X obj 230 334 route analog; +#X obj 220 324 route analog; #X obj 121 369 route 0 1 2 3 4 5 6 7; #N canvas 0 22 499 396 display 0; #X obj 6 7 inlet; @@ -417,7 +417,7 @@ #X connect 9 1 6 0; #X connect 9 2 7 0; #X coords 0 -1 1 1 145 17 1 250 100; -#X restore 30 311 pd ver; +#X restore 432 325 pd ver; #X obj 414 393 unpack 0 0; #X floatatom 414 413 5 0 0 0 - - -; #X floatatom 471 413 5 0 0 0 - - -; @@ -500,7 +500,7 @@ #X obj 346 77 cnv 15 15 15 empty empty Tx 1 10 0 11 -128992 -13381 0; #X text 436 128 which analogIns to enable:; -#X obj 230 292 arduino 1; +#X obj 220 272 arduino 1; #N canvas 649 518 411 212 firmware 0; #X obj 123 2 inlet; #X obj 250 100 cnv 15 145 17 empty $0-firmware_cnv empty 4 10 0 12 @@ -529,7 +529,7 @@ #X connect 11 0 8 0; #X connect 12 0 5 0; #X coords 0 -1 1 1 145 17 1 250 100; -#X restore 30 331 pd firmware; +#X restore 432 345 pd firmware; #X msg 358 195 devices; #X msg 358 175 firmware; #N canvas 0 22 450 300 STRING 0; @@ -539,19 +539,6 @@ #X connect 0 0 1 0; #X connect 1 0 2 0; #X restore 482 393 pd STRING; -#N canvas 0 22 450 300 Marg 0; -#X obj 139 19 inlet; -#X obj 127 109 moocow/string2any 32 -1; -#X obj 127 170 print STRING; -#X obj 97 55 list split 1; -#X obj 40 109 print COMMAND; -#X obj 210 54 print sysex; -#X connect 0 0 3 0; -#X connect 0 0 5 0; -#X connect 1 0 2 0; -#X connect 3 0 4 0; -#X connect 3 1 1 0; -#X restore 547 393 pd Marg; #N canvas 284 22 487 372 strings 0; #X obj -178 287 outlet; #X obj -142 101 moocow/any2string; @@ -618,20 +605,35 @@ #X restore 437 200 pd seri; #X text 13 6 The [arduino] object works with the Firmata firmware for Arduino (also known as Pduino firmware).; -#X obj 12 320 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 --1; -#N canvas 77 268 404 287 device 0; +#X obj 415 305 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 +-1 -1; +#N canvas 623 75 404 287 device 0; #X obj 102 61 inlet; #X obj 102 119 route open port ports; #X obj 102 170 tgl 15 0 empty empty open -3 20 0 10 -262144 -1 -1 1 1; #X floatatom 143 171 5 0 0 3 port - -; #X obj 184 171 print comport_ports; +#X obj 319 171 outlet; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 1 1 3 0; #X connect 1 2 4 0; -#X restore 387 323 pd device info; +#X connect 1 3 5 0; +#X restore 432 303 pd device info; +#N canvas 0 22 450 300 sysex 0; +#X obj 139 19 inlet; +#X obj 127 109 moocow/string2any 32 -1; +#X obj 127 170 print STRING; +#X obj 97 55 list split 1; +#X obj 40 109 print COMMAND; +#X obj 210 54 print sysex; +#X connect 0 0 3 0; +#X connect 0 0 5 0; +#X connect 1 0 2 0; +#X connect 3 0 4 0; +#X connect 3 1 1 0; +#X restore 547 393 pd sysex; #X connect 3 0 89 0; #X connect 4 0 3 0; #X connect 4 1 6 0; @@ -663,7 +665,7 @@ #X connect 53 0 89 0; #X connect 54 0 53 0; #X connect 58 0 59 0; -#X connect 58 1 96 0; +#X connect 58 1 95 0; #X connect 59 0 60 0; #X connect 59 1 60 1; #X connect 59 2 60 2; @@ -697,14 +699,14 @@ #X connect 76 1 78 0; #X connect 79 0 52 0; #X connect 89 0 38 0; -#X connect 89 0 75 0; -#X connect 89 1 102 0; +#X connect 89 1 101 0; #X connect 91 0 89 0; #X connect 92 0 89 0; -#X connect 95 0 89 0; -#X connect 96 0 61 0; -#X connect 96 1 76 0; -#X connect 96 2 93 0; -#X connect 96 3 94 0; -#X connect 99 0 9 0; +#X connect 94 0 89 0; +#X connect 95 0 61 0; +#X connect 95 1 76 0; +#X connect 95 2 93 0; +#X connect 95 3 102 0; +#X connect 98 0 9 0; +#X connect 100 0 75 0; #X connect 101 0 75 0;
Modified: trunk/externals/hardware/arduino/arduino.pd =================================================================== --- trunk/externals/hardware/arduino/arduino.pd 2008-09-08 21:25:04 UTC (rev 10280) +++ trunk/externals/hardware/arduino/arduino.pd 2008-09-08 21:32:51 UTC (rev 10281) @@ -364,7 +364,7 @@ #X connect 5 1 3 0; #X restore 52 257 pd check version; #X obj 32 143 flatspace/comport $1 115200; -#N canvas 666 625 541 319 convert 0; +#N canvas 291 212 541 319 convert 0; #X obj 142 278 outlet; #X obj 340 150 print UNKNOWN_INPUT_COMMAND; #N canvas 953 308 511 485 digital 0; @@ -441,9 +441,9 @@ #X connect 6 1 4 0; #X restore 342 174 pd analog messages; #X obj 97 13 inlet; -#N canvas 921 447 492 456 sysex 0; -#X obj 77 20 inlet; -#X obj 77 407 outlet; +#N canvas 476 232 420 451 sysex 0; +#X obj 55 16 inlet; +#X obj 55 403 outlet; #N canvas 1036 237 450 300 firmware 0; #X obj 91 6 inlet; #X obj 91 272 outlet; @@ -498,7 +498,7 @@ #X connect 6 1 7 0; #X connect 6 2 7 0; #X connect 7 0 5 0; -#X restore 77 229 pd firmware; +#X restore 55 225 pd firmware; #N canvas 843 250 610 545 assemble 0; #X text 91 24 Firmata sends 8-bit chars as two 7-bit bytes; #X obj 36 24 inlet; @@ -535,20 +535,23 @@ #X connect 12 1 8 1; #X connect 13 0 12 0; #X connect 13 1 3 0; -#X restore 181 281 pd assemble 7-bit into 14-bit values; -#X obj 181 330 list prepend; -#X obj 181 351 list trim; -#X obj 180 157 trigger anything anything; -#X msg 327 181 $1; -#X obj 181 183 list split 1; -#X obj 327 205 select 112 113; -#X text 358 188 0x70 0x71; -#X msg 356 230 string; -#X msg 273 230 servo_config; -#X text 108 80 0x79; -#X obj 77 98 route 121; +#X restore 159 277 pd assemble 7-bit into 14-bit values; +#X obj 159 326 list prepend; +#X obj 159 347 list trim; +#X obj 158 153 trigger anything anything; +#X msg 305 177 $1; +#X obj 159 179 list split 1; +#X obj 305 201 select 112 113; +#X text 336 184 0x70 0x71; +#X msg 334 226 string; +#X msg 251 226 servo_config; +#X text 86 76 0x79; +#X obj 55 94 route 121; +#X text 96 401 data; +#X obj 163 403 outlet; +#X text 209 403 status; #X connect 0 0 14 0; -#X connect 2 0 1 0; +#X connect 2 0 16 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 5 0 1 0; @@ -627,17 +630,21 @@ #X obj 97 95 route 249 240; #X text 124 80 0xF9 0xF0; #X msg 40 174 version $1 $2; +#X obj 263 277 outlet; +#X text 312 279 status outlet; +#X text 184 277 data outlet; #X connect 2 0 0 0; #X connect 3 0 0 0; #X connect 4 0 7 0; #X connect 5 0 0 0; +#X connect 5 1 10 0; #X connect 6 0 2 0; #X connect 6 1 3 0; #X connect 6 2 1 0; #X connect 7 0 9 0; #X connect 7 1 5 0; #X connect 7 2 6 0; -#X connect 9 0 0 0; +#X connect 9 0 10 0; #X restore 32 229 pd convert to symbolic commands; #X text 27 331 (C) Copyright 2006-2008 Free Software Foundation; #X text 334 330 released under the GNU GPL v2 or later; @@ -651,3 +658,4 @@ #X connect 10 1 2 0; #X connect 11 0 1 0; #X connect 11 0 9 0; +#X connect 11 1 2 0;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.