aboutsummaryrefslogtreecommitdiff
path: root/arduino-test.pd
diff options
context:
space:
mode:
Diffstat (limited to 'arduino-test.pd')
-rw-r--r--arduino-test.pd624
1 files changed, 359 insertions, 265 deletions
diff --git a/arduino-test.pd b/arduino-test.pd
index 9e5d71b..fff45ac 100644
--- a/arduino-test.pd
+++ b/arduino-test.pd
@@ -1,6 +1,12 @@
-#N canvas 597 590 690 532 10;
+#N canvas 110 186 746 588 10;
#X obj 512 7 import hardware mapping;
-#X msg 161 172 open 1;
+#X obj 323 136 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577
+0;
+#X obj 73 165 cnv 15 70 22 empty empty empty 20 12 0 14 -253938 -66577
+0;
+#X obj 155 190 cnv 15 60 22 empty empty empty 20 12 0 14 -253938 -66577
+0;
+#X msg 161 192 open 1;
#N canvas 627 365 360 384 serin 0;
#X obj 180 61 cnv 15 15 15 empty \$0-number-canvas 1 4 8 0 14 -233017
-1 0;
@@ -28,17 +34,17 @@
#X connect 10 1 11 0;
#X connect 11 0 9 0;
#X coords 0 -1 1 1 136 17 1 60 60;
-#X restore 161 149 pd serin;
-#X text 158 131 serial port #;
-#X text 418 505 released under the GNU GPL;
-#X text 2 505 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
+#X restore 161 169 pd serin;
+#X text 158 151 serial port #;
+#X text 418 525 released under the GNU GPL;
+#X text 2 525 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
;
-#X msg 221 172 close;
-#X obj 429 320 tgl 15 0 empty empty changes 0 -6 0 8 -262144 -1 -1
+#X msg 221 192 close;
+#X obj 641 310 tgl 15 0 empty empty changes 0 -6 0 8 -262144 -1 -1
0 1;
-#X obj 368 320 tgl 15 0 empty empty all 0 -6 0 8 -262144 -1 -1 0 1
+#X obj 580 310 tgl 15 0 empty empty all 0 -6 0 8 -262144 -1 -1 0 1
;
-#N canvas 110 264 373 233 decode 0;
+#N canvas 810 482 417 277 decode 0;
#X obj 27 12 inlet;
#X floatatom 59 58 5 0 0 0 - - -;
#X obj 46 128 tgl 15 0 empty empty 1 3 -6 0 10 -260818 -1 -1 0 2;
@@ -65,40 +71,38 @@
#X obj 267 128 tgl 15 0 empty empty 13 3 -6 0 10 -260818 -1 -1 0 8192
;
#X obj 28 128 tgl 15 0 empty empty 0 3 -6 0 10 -260818 -1 -1 0 1;
-#N canvas 64 160 782 304 send-to-arduino................. 0;
-#X obj 35 25 inlet;
-#X obj 35 55 route digital0 digital1 digital2 digital3 digital4 digital5
-digital6 digital7 digital8 digital9 digital10 digital11 digital12 digital13
-;
-#X obj 35 229 outlet;
-#X obj 85 229 outlet;
-#X obj 137 229 outlet;
-#X obj 187 229 outlet;
-#X obj 237 229 outlet;
-#X obj 287 229 outlet;
-#X obj 339 229 outlet;
-#X obj 389 229 outlet;
-#X obj 437 229 outlet;
-#X obj 487 229 outlet;
-#X obj 539 229 outlet;
-#X obj 589 229 outlet;
-#X obj 637 229 outlet;
-#X obj 687 229 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 connect 1 3 5 0;
-#X connect 1 4 6 0;
-#X connect 1 5 7 0;
-#X connect 1 6 8 0;
-#X connect 1 7 9 0;
-#X connect 1 8 10 0;
-#X connect 1 9 11 0;
-#X connect 1 10 12 0;
-#X connect 1 11 13 0;
-#X connect 1 12 14 0;
-#X connect 1 13 15 0;
+#N canvas 328 358 758 218 send-to-arduino................. 0;
+#X obj 215 25 inlet;
+#X obj 15 129 outlet;
+#X obj 65 129 outlet;
+#X obj 117 129 outlet;
+#X obj 167 129 outlet;
+#X obj 217 129 outlet;
+#X obj 267 129 outlet;
+#X obj 319 129 outlet;
+#X obj 369 129 outlet;
+#X obj 417 129 outlet;
+#X obj 467 129 outlet;
+#X obj 519 129 outlet;
+#X obj 569 129 outlet;
+#X obj 617 129 outlet;
+#X obj 667 129 outlet;
+#X obj 215 55 route 0 1 2 3 4 5 6 7 8 9 10 11 12 13;
+#X connect 0 0 15 0;
+#X connect 15 0 1 0;
+#X connect 15 1 2 0;
+#X connect 15 2 3 0;
+#X connect 15 3 4 0;
+#X connect 15 4 5 0;
+#X connect 15 5 6 0;
+#X connect 15 6 7 0;
+#X connect 15 7 8 0;
+#X connect 15 8 9 0;
+#X connect 15 9 10 0;
+#X connect 15 10 11 0;
+#X connect 15 11 12 0;
+#X connect 15 12 13 0;
+#X connect 15 13 14 0;
#X restore 28 93 pd send-to-arduino.................;
#X connect 0 0 1 0;
#X connect 0 0 16 0;
@@ -116,19 +120,19 @@ digital6 digital7 digital8 digital9 digital10 digital11 digital12 digital13
#X connect 16 11 12 0;
#X connect 16 12 13 0;
#X connect 16 13 14 0;
-#X restore 516 442 pd decode buttons;
-#X obj 88 88 hsl 150 17 0 1 0 0 empty empty PWM_control_(0-1) -2 -6
-1 10 -225271 -1 -1 0 0;
-#X obj 53 314 tgl 15 1 empty empty empty 0 -6 0 8 -225271 -1 -1 1 1
+#X restore 571 462 pd decode buttons;
+#X obj 138 119 hsl 150 17 0 1 0 0 empty empty PWM_control_(0-1) -2
+-6 1 10 -225271 -1 -1 0 0;
+#X obj 53 334 tgl 15 1 empty empty empty 0 -6 0 8 -225271 -1 -1 0 1
;
-#X obj 16 376 route analog0 analog1 analog2 analog3 analog4 analog5
+#X obj 16 396 route analog0 analog1 analog2 analog3 analog4 analog5
;
-#X text 454 136 how many analogIns to enable:;
-#X obj 455 197 tgl 15 1 empty empty empty 0 -6 0 8 -257472 -1 -1 1
+#X text 454 156 how many analogIns to enable:;
+#X obj 455 217 tgl 15 1 empty empty empty 0 -6 0 8 -257472 -1 -1 0
1;
-#X text 478 196 enable/disable digitalIns;
-#X msg 455 215 digitalIns \$1;
-#X msg 455 173 analogIns 0;
+#X text 478 216 enable/disable digitalIns;
+#X msg 455 235 digitalIns \$1;
+#X msg 455 193 analogIns 0;
#N canvas 162 133 570 420 serin 0;
#X obj 165 61 cnv 15 15 15 empty \$0-analog-number-canvas 0 4 8 0 14
-233017 -1 0;
@@ -156,8 +160,8 @@ digital6 digital7 digital8 digital9 digital10 digital11 digital12 digital13
#X connect 10 1 11 0;
#X connect 11 0 9 0;
#X coords 0 -1 1 1 121 17 1 60 60;
-#X restore 455 153 pd serin;
-#N canvas 0 22 409 289 speed 0;
+#X restore 455 173 pd serin;
+#N canvas 0 22 421 301 speed 0;
#X obj 21 41 inlet;
#X obj 21 62 maxlib/speedlim 100;
#X obj 21 84 outlet;
@@ -191,9 +195,9 @@ digital6 digital7 digital8 digital9 digital10 digital11 digital12 digital13
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 18 0 19 0;
-#X restore 16 398 pd speed limiting for displaying values with pegging
+#X restore 16 418 pd speed limiting for displaying values with pegging
the CPU;
-#N canvas 77 268 462 312 debugging 0;
+#N canvas 77 268 478 328 debugging 0;
#X obj 136 31 inlet;
#X obj 324 29 inlet;
#X obj 27 31 inlet;
@@ -207,6 +211,38 @@ the CPU;
#X obj 208 181 change;
#X obj 208 159 list-abs/list-len;
#X obj 43 136 print DEBUG;
+#N canvas 146 22 466 316 DEBUG 0;
+#X msg 142 19 open 1;
+#X msg 200 20 close;
+#X msg 52 82 pinMode 13 1;
+#X msg 15 137 digital 13 \$1;
+#X obj 15 119 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
+;
+#X msg 271 93 213;
+#X obj 289 123 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
+127;
+#X floatatom 309 123 5 0 0 0 - - -;
+#X msg 250 63 150 \, 160;
+#X text 311 62 turn off input;
+#X msg 284 145 229 \, \$1 \, \$1;
+#X msg 318 249 64;
+#X msg 304 180 229 \, 127 \, 127;
+#X msg 304 210 229 \, 0 \, 0;
+#X obj 193 267 arduino 1;
+#X connect 0 0 14 0;
+#X connect 1 0 14 0;
+#X connect 2 0 14 0;
+#X connect 3 0 14 0;
+#X connect 4 0 3 0;
+#X connect 5 0 14 1;
+#X connect 6 0 10 0;
+#X connect 6 0 7 0;
+#X connect 8 0 14 1;
+#X connect 10 0 14 1;
+#X connect 11 0 14 1;
+#X connect 12 0 14 1;
+#X connect 13 0 14 1;
+#X restore 363 269 pd DEBUG;
#X connect 0 0 7 1;
#X connect 1 0 3 1;
#X connect 2 0 7 0;
@@ -221,88 +257,31 @@ the CPU;
#X connect 9 0 11 0;
#X connect 10 0 8 0;
#X connect 11 0 10 0;
-#X restore 308 338 pd debugging stuff;
-#X floatatom 16 423 5 0 0 3 analog0 - -;
-#X floatatom 85 423 5 0 0 3 analog1 - -;
-#X floatatom 154 423 5 0 0 3 analog2 - -;
-#X floatatom 223 423 5 0 0 3 analog3 - -;
-#X floatatom 292 423 5 0 0 3 analog4 - -;
-#X floatatom 361 423 5 0 0 3 analog5 - -;
-#N canvas 304 39 554 369 sending 0;
-#X obj 167 325 outlet;
-#X obj 168 77 tgl 15 0 empty empty 6 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 185 77 tgl 15 0 empty empty 5 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 202 77 tgl 15 0 empty empty 4 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 219 77 tgl 15 0 empty empty 3 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 236 77 tgl 15 0 empty empty 2 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 253 77 tgl 15 0 empty empty 1 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 270 77 tgl 15 0 empty empty 0 4 -6 1 12 -233017 -1 -1 0 1;
-#X text 60 11 The 8th bit is not used in the bitmask \, there are 7
-bits of digital output values per byte.;
-#X obj 49 77 tgl 15 0 empty empty 13 0 -6 1 12 -233017 -1 -1 0 1;
-#X obj 66 77 tgl 15 0 empty empty 12 0 -6 1 12 -233017 -1 -1 0 1;
-#X obj 83 77 tgl 15 0 empty empty 11 0 -6 1 12 -233017 -1 -1 0 1;
-#X obj 100 77 tgl 15 0 empty empty 10 0 -6 1 12 -233017 -1 -1 0 1;
-#X obj 117 77 tgl 15 0 empty empty 9 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 134 77 tgl 15 0 empty empty 8 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 151 77 tgl 15 0 empty empty 7 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 167 140 trigger bang float;
-#X obj 380 175 tgl 15 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0
-16383;
-#X obj 380 138 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
-16383;
-#X obj 379 156 metro 100;
-#X obj 167 200 +;
-#X obj 167 163 float;
-#X obj 288 161 << 7;
-#X text 251 205 this will flash all pins set to output;
-#X obj 380 45 inlet;
-#X obj 91 118 bytemask;
-#X obj 167 118 bytemask;
-#X connect 1 0 26 1;
-#X connect 2 0 26 2;
-#X connect 3 0 26 3;
-#X connect 4 0 26 4;
-#X connect 5 0 26 5;
-#X connect 6 0 26 6;
-#X connect 7 0 26 7;
-#X connect 9 0 25 1;
-#X connect 10 0 25 2;
-#X connect 11 0 25 3;
-#X connect 12 0 25 4;
-#X connect 13 0 25 5;
-#X connect 14 0 25 6;
-#X connect 15 0 25 7;
-#X connect 16 0 21 0;
-#X connect 16 1 22 0;
-#X connect 17 0 0 0;
-#X connect 18 0 19 0;
-#X connect 19 0 17 0;
-#X connect 20 0 0 0;
-#X connect 21 0 20 0;
-#X connect 22 0 20 1;
-#X connect 24 0 18 0;
-#X connect 25 0 21 0;
-#X connect 26 0 16 0;
-#X restore 15 248 pd sending digital outs;
-#X text 320 291 <- argument sets port #;
-#X msg 52 88 off;
-#X obj 30 60 hradio 15 1 0 14 empty empty empty 0 -6 0 8 -176124 -1
+#X restore 520 328 pd debugging stuff;
+#X floatatom 16 443 5 0 0 3 analog0 - -;
+#X floatatom 85 443 5 0 0 3 analog1 - -;
+#X floatatom 154 443 5 0 0 3 analog2 - -;
+#X floatatom 223 443 5 0 0 3 analog3 - -;
+#X floatatom 292 443 5 0 0 3 analog4 - -;
+#X floatatom 361 443 5 0 0 3 analog5 - -;
+#X text 320 311 <- argument sets port #;
+#X msg 102 119 off;
+#X obj 80 91 hradio 15 1 0 14 empty empty empty 0 -6 0 8 -176124 -1
-1 0;
-#X text 138 46 7;
-#X text 32 46 0;
-#X text 179 46 10;
-#X text 225 46 13;
-#X text 92 46 4;
-#X text 61 46 2;
-#X text 106 46 5;
-#X text 121 46 6;
-#X text 77 46 3;
-#X text 152 46 8;
-#X text 169 46 9;
-#X text 195 46 11;
-#X text 210 46 12;
-#X text 47 46 1;
+#X text 188 77 7;
+#X text 82 77 0;
+#X text 229 77 10;
+#X text 275 77 13;
+#X text 142 77 4;
+#X text 111 77 2;
+#X text 156 77 5;
+#X text 171 77 6;
+#X text 127 77 3;
+#X text 202 77 8;
+#X text 219 77 9;
+#X text 245 77 11;
+#X text 260 77 12;
+#X text 97 77 1;
#N canvas 66 58 415 495 pwm 0;
#X obj 38 10 inlet;
#X obj 131 10 inlet;
@@ -343,64 +322,146 @@ bits of digital output values per byte.;
#X connect 15 1 16 0;
#X connect 16 0 17 0;
#X connect 17 0 14 0;
-#X restore 31 114 pd pwm;
-#X msg 31 134 pwm 11 off;
-#X obj 250 292 arduino 1;
-#X msg 328 175 info;
-#X obj 15 229 tgl 15 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0 16383
-;
-#X text 33 228 pulse all outputs;
-#X msg 367 175 version;
-#X obj 430 465 print [arduino]_VERSION;
-#X obj 16 344 spigot;
+#X restore 81 145 pd pwm;
+#X msg 81 167 pwm 0 0;
+#X msg 328 195 info;
+#X msg 367 195 version;
+#X obj 500 485 print [arduino]_VERSION;
+#X obj 16 364 spigot;
#X text 13 6 The [arduino] object works with the Firmata firmware for
Arduino (previously known as Pduino firmware).;
-#X obj 347 69 tgl 15 0 empty empty 1 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 365 69 tgl 15 0 empty empty 2 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 383 69 tgl 15 0 empty empty 3 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 401 69 tgl 15 0 empty empty 4 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 419 69 tgl 15 0 empty empty 5 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 437 69 tgl 15 0 empty empty 6 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 455 69 tgl 15 0 empty empty 7 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 473 69 tgl 15 0 empty empty 8 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 491 69 tgl 15 0 empty empty 9 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 509 69 tgl 15 0 empty empty 10 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 527 69 tgl 15 0 empty empty 11 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 545 69 tgl 15 0 empty empty 12 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 563 69 tgl 15 0 empty empty 13 3 -6 0 10 -260818 -1 -1 0 1;
-#X obj 589 49 tgl 20 0 empty empty empty 0 -6 0 8 -258699 -1 -1 0 1
-;
-#X obj 329 69 tgl 15 0 empty empty 0 3 -6 0 10 -260818 -1 -1 0 1;
-#N canvas 554 328 754 304 send-to-arduino---------------- 0;
-#X obj 49 54 inlet;
-#X obj 89 54 inlet;
-#X obj 128 54 inlet;
-#X obj 168 54 inlet;
-#X obj 208 54 inlet;
-#X obj 248 54 inlet;
-#X obj 287 54 inlet;
-#X obj 327 54 inlet;
-#X obj 368 53 inlet;
-#X obj 408 53 inlet;
-#X obj 447 53 inlet;
-#X obj 487 53 inlet;
-#X obj 527 53 inlet;
-#X msg 49 96 outputMode 0 \$1;
-#X msg 89 118 outputMode 1 \$1;
-#X msg 128 140 outputMode 2 \$1;
-#X msg 168 160 outputMode 3 \$1;
-#X msg 208 92 outputMode 4 \$1;
-#X msg 248 114 outputMode 5 \$1;
-#X msg 287 136 outputMode 6 \$1;
-#X msg 327 156 outputMode 7 \$1;
-#X msg 368 88 outputMode 8 \$1;
-#X msg 408 110 outputMode 9 \$1;
-#X msg 447 132 outputMode 10 \$1;
-#X msg 487 152 outputMode 11 \$1;
-#X msg 527 80 outputMode 12 \$1;
-#X obj 566 53 inlet;
-#X msg 566 100 outputMode 13 \$1;
-#X obj 305 226 outlet;
+#X obj 347 89 tgl 15 0 empty empty 1 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 365 89 tgl 15 0 empty empty 2 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 383 89 tgl 15 0 empty empty 3 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 401 89 tgl 15 0 empty empty 4 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 419 89 tgl 15 0 empty empty 5 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 437 89 tgl 15 0 empty empty 6 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 455 89 tgl 15 0 empty empty 7 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 473 89 tgl 15 0 empty empty 8 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 491 89 tgl 15 0 empty empty 9 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 509 89 tgl 15 0 empty empty 10 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 527 89 tgl 15 0 empty empty 11 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 545 89 tgl 15 0 empty empty 12 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 563 89 tgl 15 0 empty empty 13 3 -6 0 10 -260818 -1 -1 0 1;
+#X obj 329 89 tgl 15 0 empty empty 0 3 -6 0 10 -260818 -1 -1 0 1;
+#N canvas 518 328 766 316 send-to-arduino---------------- 0;
+#X obj 49 24 inlet;
+#X obj 89 24 inlet;
+#X obj 128 24 inlet;
+#X obj 168 24 inlet;
+#X obj 208 24 inlet;
+#X obj 248 24 inlet;
+#X obj 287 24 inlet;
+#X obj 327 24 inlet;
+#X obj 368 23 inlet;
+#X obj 408 23 inlet;
+#X obj 447 23 inlet;
+#X obj 487 23 inlet;
+#X obj 527 23 inlet;
+#X msg 49 66 pinMode 0 \$1;
+#X msg 89 88 pinMode 1 \$1;
+#X msg 128 110 pinMode 2 \$1;
+#X msg 168 130 pinMode 3 \$1;
+#X msg 208 62 pinMode 4 \$1;
+#X msg 248 84 pinMode 5 \$1;
+#X msg 287 106 pinMode 6 \$1;
+#X msg 327 126 pinMode 7 \$1;
+#X msg 368 58 pinMode 8 \$1;
+#X msg 408 80 pinMode 9 \$1;
+#X msg 447 102 pinMode 10 \$1;
+#X msg 487 122 pinMode 11 \$1;
+#X msg 527 50 pinMode 12 \$1;
+#X obj 566 23 inlet;
+#X msg 566 70 pinMode 13 \$1;
+#X obj 305 196 prepend set;
+#X obj 305 254 outlet;
+#X obj 305 215 trigger bang anything;
+#X connect 0 0 13 0;
+#X connect 1 0 14 0;
+#X connect 2 0 15 0;
+#X connect 3 0 16 0;
+#X connect 4 0 17 0;
+#X connect 5 0 18 0;
+#X connect 6 0 19 0;
+#X connect 7 0 20 0;
+#X connect 8 0 21 0;
+#X connect 9 0 22 0;
+#X connect 10 0 23 0;
+#X connect 11 0 24 0;
+#X connect 12 0 25 0;
+#X connect 13 0 28 0;
+#X connect 14 0 28 0;
+#X connect 15 0 28 0;
+#X connect 16 0 28 0;
+#X connect 17 0 28 0;
+#X connect 18 0 28 0;
+#X connect 19 0 28 0;
+#X connect 20 0 28 0;
+#X connect 21 0 28 0;
+#X connect 22 0 28 0;
+#X connect 23 0 28 0;
+#X connect 24 0 28 0;
+#X connect 25 0 28 0;
+#X connect 26 0 27 0;
+#X connect 27 0 28 0;
+#X connect 28 0 30 0;
+#X connect 30 0 29 0;
+#X connect 30 1 29 0;
+#X restore 329 116 pd send-to-arduino----------------;
+#X text 330 61 turn on output mode for each pin (off=input);
+#X obj 500 441 route version digital;
+#X msg 329 138 pinMode 13 1;
+#N canvas 101 54 451 328 sending 0;
+#X obj 69 158 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577
+0;
+#X obj 78 244 outlet;
+#X msg 78 161 digital 9 1;
+#X obj 197 98 tgl 15 0 empty empty 7 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 214 98 tgl 15 0 empty empty 8 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 231 98 tgl 15 0 empty empty 9 4 -6 1 12 -233017 -1 -1 1 1;
+#X obj 248 98 tgl 15 0 empty empty 10 0 -6 1 12 -233017 -1 -1 1 1;
+#X obj 265 98 tgl 15 0 empty empty 11 0 -6 1 12 -233017 -1 -1 0 1;
+#X obj 282 98 tgl 15 0 empty empty 12 0 -6 1 12 -233017 -1 -1 0 1;
+#X obj 299 98 tgl 15 0 empty empty 13 0 -6 1 12 -233017 -1 -1 0 1;
+#X obj 78 98 tgl 15 0 empty empty 0 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 95 98 tgl 15 0 empty empty 1 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 112 98 tgl 15 0 empty empty 2 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 129 98 tgl 15 0 empty empty 3 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 146 98 tgl 15 0 empty empty 5 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 163 98 tgl 15 0 empty empty 6 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 180 98 tgl 15 0 empty empty 7 4 -6 1 12 -233017 -1 -1 0 1;
+#N canvas 486 328 798 348 generate 0;
+#X obj 49 24 inlet;
+#X obj 89 24 inlet;
+#X obj 128 24 inlet;
+#X obj 168 24 inlet;
+#X obj 208 24 inlet;
+#X obj 248 24 inlet;
+#X obj 287 24 inlet;
+#X obj 327 24 inlet;
+#X obj 368 23 inlet;
+#X obj 408 23 inlet;
+#X obj 447 23 inlet;
+#X obj 487 23 inlet;
+#X obj 527 23 inlet;
+#X msg 49 66 digital 0 \$1;
+#X msg 89 88 digital 1 \$1;
+#X msg 128 110 digital 2 \$1;
+#X msg 168 130 digital 3 \$1;
+#X msg 208 62 digital 4 \$1;
+#X msg 248 84 digital 5 \$1;
+#X msg 287 106 digital 6 \$1;
+#X msg 327 126 digital 7 \$1;
+#X msg 368 58 digital 8 \$1;
+#X msg 408 80 digital 9 \$1;
+#X msg 447 102 digital 10 \$1;
+#X msg 487 122 digital 11 \$1;
+#X msg 527 50 digital 12 \$1;
+#X obj 566 23 inlet;
+#X msg 566 70 digital 13 \$1;
+#X obj 305 196 prepend set;
+#X obj 305 254 outlet;
+#X obj 305 215 trigger bang anything;
#X connect 0 0 13 0;
#X connect 1 0 14 0;
#X connect 2 0 15 0;
@@ -429,74 +490,107 @@ Arduino (previously known as Pduino firmware).;
#X connect 25 0 28 0;
#X connect 26 0 27 0;
#X connect 27 0 28 0;
-#X restore 329 96 pd send-to-arduino----------------;
-#X text 323 33 turn on output mode for each pin (off=input);
-#X text 611 52 all;
-#X obj 430 421 route version;
-#X connect 1 0 47 0;
+#X connect 28 0 30 0;
+#X connect 30 0 29 0;
+#X connect 30 1 29 0;
+#X restore 78 122 pd generate digital out messages;
+#X obj 348 73 tgl 25 0 empty empty ALL 2 12 0 12 -262144 -1 -1 0 1
+;
+#X obj 349 34 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 16383
+;
+#X obj 348 52 metro 100;
+#X obj 349 13 inlet;
#X connect 2 0 1 0;
-#X connect 6 0 47 0;
-#X connect 7 0 20 2;
-#X connect 8 0 20 1;
-#X connect 10 0 45 1;
-#X connect 11 0 53 1;
-#X connect 12 0 19 0;
-#X connect 12 1 19 1;
-#X connect 12 2 19 2;
-#X connect 12 3 19 3;
-#X connect 12 4 19 4;
-#X connect 12 5 19 5;
-#X connect 12 6 19 6;
-#X connect 14 0 16 0;
-#X connect 16 0 47 0;
-#X connect 17 0 47 0;
-#X connect 18 0 17 0;
-#X connect 19 0 21 0;
-#X connect 19 1 22 0;
-#X connect 19 2 23 0;
-#X connect 19 3 24 0;
-#X connect 19 4 25 0;
-#X connect 19 5 26 0;
-#X connect 19 6 73 0;
-#X connect 27 0 47 0;
-#X connect 29 0 45 1;
-#X connect 30 0 45 0;
-#X connect 45 0 46 0;
-#X connect 46 0 47 0;
-#X connect 47 0 53 0;
-#X connect 47 1 20 0;
-#X connect 48 0 47 0;
-#X connect 49 0 27 0;
-#X connect 51 0 47 0;
-#X connect 53 0 12 0;
-#X connect 55 0 70 1;
-#X connect 56 0 70 2;
-#X connect 57 0 70 3;
-#X connect 58 0 70 4;
-#X connect 59 0 70 5;
-#X connect 60 0 70 6;
-#X connect 61 0 70 7;
-#X connect 62 0 70 8;
-#X connect 63 0 70 9;
-#X connect 64 0 70 10;
-#X connect 65 0 70 11;
-#X connect 66 0 70 12;
-#X connect 67 0 70 13;
-#X connect 68 0 67 0;
-#X connect 68 0 66 0;
-#X connect 68 0 65 0;
-#X connect 68 0 64 0;
-#X connect 68 0 63 0;
-#X connect 68 0 62 0;
-#X connect 68 0 61 0;
-#X connect 68 0 60 0;
-#X connect 68 0 59 0;
-#X connect 68 0 58 0;
-#X connect 68 0 57 0;
-#X connect 68 0 56 0;
-#X connect 68 0 55 0;
-#X connect 68 0 69 0;
-#X connect 69 0 70 0;
-#X connect 70 0 47 0;
-#X connect 73 0 52 0;
-#X connect 73 1 9 0;
+#X connect 3 0 17 7;
+#X connect 4 0 17 8;
+#X connect 5 0 17 9;
+#X connect 6 0 17 10;
+#X connect 7 0 17 11;
+#X connect 8 0 17 12;
+#X connect 9 0 17 13;
+#X connect 10 0 17 0;
+#X connect 11 0 17 1;
+#X connect 12 0 17 2;
+#X connect 13 0 17 3;
+#X connect 14 0 17 4;
+#X connect 15 0 17 5;
+#X connect 16 0 17 6;
+#X connect 17 0 2 0;
+#X connect 18 0 9 0;
+#X connect 18 0 8 0;
+#X connect 18 0 7 0;
+#X connect 18 0 6 0;
+#X connect 18 0 5 0;
+#X connect 18 0 4 0;
+#X connect 18 0 3 0;
+#X connect 18 0 16 0;
+#X connect 18 0 15 0;
+#X connect 18 0 14 0;
+#X connect 18 0 13 0;
+#X connect 18 0 12 0;
+#X connect 18 0 11 0;
+#X connect 18 0 10 0;
+#X connect 19 0 20 0;
+#X connect 20 0 18 0;
+#X connect 21 0 19 0;
+#X restore 14 264 pd sending digital outs;
+#X obj 250 340 route analog digital version;
+#X obj 14 245 tgl 15 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0 16383
+;
+#X text 32 244 pulse all outputs;
+#X obj 250 312 arduino 1;
+#X connect 4 0 76 0;
+#X connect 5 0 4 0;
+#X connect 9 0 76 0;
+#X connect 10 0 23 2;
+#X connect 11 0 23 1;
+#X connect 13 0 47 1;
+#X connect 14 0 52 1;
+#X connect 15 0 22 0;
+#X connect 15 1 22 1;
+#X connect 15 2 22 2;
+#X connect 15 3 22 3;
+#X connect 15 4 22 4;
+#X connect 15 5 22 5;
+#X connect 15 6 22 6;
+#X connect 17 0 19 0;
+#X connect 19 0 76 0;
+#X connect 20 0 76 0;
+#X connect 21 0 20 0;
+#X connect 22 0 24 0;
+#X connect 22 1 25 0;
+#X connect 22 2 26 0;
+#X connect 22 3 27 0;
+#X connect 22 4 28 0;
+#X connect 22 5 29 0;
+#X connect 22 6 70 0;
+#X connect 31 0 47 1;
+#X connect 32 0 47 0;
+#X connect 47 0 48 0;
+#X connect 48 0 76 0;
+#X connect 49 0 76 0;
+#X connect 50 0 76 0;
+#X connect 52 0 15 0;
+#X connect 54 0 68 1;
+#X connect 55 0 68 2;
+#X connect 56 0 68 3;
+#X connect 57 0 68 4;
+#X connect 58 0 68 5;
+#X connect 59 0 68 6;
+#X connect 60 0 68 7;
+#X connect 61 0 68 8;
+#X connect 62 0 68 9;
+#X connect 63 0 68 10;
+#X connect 64 0 68 11;
+#X connect 65 0 68 12;
+#X connect 66 0 68 13;
+#X connect 67 0 68 0;
+#X connect 68 0 71 0;
+#X connect 70 0 51 0;
+#X connect 70 1 12 0;
+#X connect 71 0 76 0;
+#X connect 72 0 76 0;
+#X connect 74 0 72 0;
+#X connect 76 0 52 0;
+#X connect 76 0 73 0;
+#X connect 76 1 23 0;