aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arduino-test.pd827
1 files changed, 493 insertions, 334 deletions
diff --git a/arduino-test.pd b/arduino-test.pd
index f6ffd9d..daea9dd 100644
--- a/arduino-test.pd
+++ b/arduino-test.pd
@@ -1,5 +1,5 @@
-#N canvas 201 41 647 505 10;
-#X obj 323 116 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577
+#N canvas 168 22 647 505 10;
+#X obj 313 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
0;
@@ -64,11 +64,11 @@
#X restore 161 149 pd serin;
#X text 158 131 serial port #;
#X msg 221 172 close;
-#X obj 98 99 hsl 150 17 0 1 0 0 empty ARDUINO_TEST_RESET PWM_control_(0-1)
--2 -6 1 10 -225271 -1 -1 0 0;
+#X obj 98 99 hsl 150 17 0 1 0 0 empty ARDUINO_TEST_RESET analog_output_(0-1)
+-2 -5 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 220 digitalIns 2 0;
#X msg 437 165 analogIns 0 1;
#N canvas 162 133 610 460 serin 0;
#X obj 59 337 outlet;
@@ -146,131 +146,130 @@
#X text 205 57 11;
#X text 220 57 12;
#X text 57 57 1;
-#N canvas 66 58 423 503 pwm 0;
-#X obj 38 10 inlet;
-#X obj 131 10 inlet;
-#X msg 37 308 pwm \$1 \$2;
-#X obj 38 259 pack float float;
-#X obj 192 113 route float symbol;
-#X obj 188 259 pack float symbol;
-#X text 78 11 pin#;
-#X text 179 10 PWM value or "off";
-#X obj 39 217 cyclone/gate 2;
-#X msg 191 153 1;
-#X msg 252 153 2;
-#X obj 131 34 list;
-#X obj 131 113 float;
-#X obj 131 67 trigger bang anything;
-#X obj 37 427 outlet;
-#X obj 37 356 trigger bang anything;
-#X obj 179 376 list;
-#X msg 179 396 set \$1 \$2 \$3;
-#X connect 0 0 12 0;
-#X connect 1 0 11 0;
-#X connect 2 0 15 0;
-#X connect 3 0 2 0;
-#X connect 4 0 9 0;
-#X connect 4 0 3 1;
-#X connect 4 1 10 0;
-#X connect 4 1 5 1;
-#X connect 5 0 2 0;
-#X connect 8 0 3 0;
-#X connect 8 1 5 0;
-#X connect 9 0 8 0;
-#X connect 10 0 8 0;
-#X connect 11 0 13 0;
-#X connect 12 0 8 1;
-#X connect 13 0 12 0;
-#X connect 13 1 4 0;
-#X connect 15 0 14 0;
-#X connect 15 1 16 0;
-#X connect 16 0 17 0;
-#X connect 17 0 14 0;
-#X restore 41 125 pd pwm;
-#X msg 41 147 pwm 0 0;
+#X msg 41 147 analog 0 0;
#X msg 319 155 info;
#X msg 358 155 version;
#X obj 220 302 spigot;
-#X obj 363 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 2 3 -6 1 12 -260818
--1 -1 1 1;
-#X obj 380 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 3 3 -6 1 12 -260818
--1 -1 1 1;
-#X obj 397 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 4 3 -6 1 12 -260818
--1 -1 1 1;
-#X obj 414 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 5 3 -6 1 12 -260818
--1 -1 1 1;
-#X obj 431 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 6 3 -6 1 12 -260818
--1 -1 1 1;
-#X obj 448 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 7 3 -6 1 12 -260818
--1 -1 1 1;
-#X obj 465 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 8 3 -6 1 12 -260818
--1 -1 1 1;
-#X obj 482 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 9 3 -6 1 12 -260818
--1 -1 1 1;
-#X obj 499 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 10 0 -6 1 12 -260818
--1 -1 1 1;
-#X obj 516 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 11 0 -6 1 12 -260818
--1 -1 1 1;
-#X obj 533 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 12 0 -6 1 12 -260818
--1 -1 1 1;
-#X obj 550 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 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 13 1;
-#N canvas 108 55 475 478 sending 0;
-#X obj 69 208 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577
+#X msg 319 118 pinMode 14 0;
+#N canvas 67 22 475 478 sending 0;
+#X obj 69 228 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577
0;
#X obj 78 434 outlet;
-#X msg 78 211 digital 2 0;
-#X obj 197 148 tgl 15 0 empty empty 7 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 214 148 tgl 15 0 empty empty 8 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 231 148 tgl 15 0 empty empty 9 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 248 148 tgl 15 0 empty empty 10 0 -6 1 12 -233017 -1 -1 0 1
+#X msg 78 231 digital 22 0;
+#X obj 127 148 tgl 15 0 empty empty 7 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 144 148 tgl 15 0 empty empty 8 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 161 148 tgl 15 0 empty empty 9 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 178 148 tgl 15 0 empty empty 10 0 -6 1 12 -233017 -1 -1 0 1
+;
+#X obj 195 148 tgl 15 0 empty empty 11 0 -6 1 12 -233017 -1 -1 0 1
+;
+#X obj 212 148 tgl 15 0 empty empty 12 0 -6 1 12 -233017 -1 -1 0 1
+;
+#X obj 229 148 tgl 15 0 empty empty 13 0 -6 1 12 -233017 -1 -1 0 1
;
-#X obj 265 148 tgl 15 0 empty empty 11 0 -6 1 12 -233017 -1 -1 0 1
+#X obj 42 148 tgl 15 0 empty empty 2 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 59 148 tgl 15 0 empty empty 3 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 76 148 tgl 15 0 empty empty 4 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 93 148 tgl 15 0 empty empty 5 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 110 148 tgl 15 0 empty empty 6 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 418 123 tgl 25 0 empty ARDUINO_TEST_RESET ALL 2 12 0 12 -262144
+-1 -1 0 1;
+#X obj 388 72 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 16383
+;
+#X obj 388 92 metro 100;
+#X obj 301 9 inlet;
+#X obj 8 148 tgl 15 0 empty empty 0 3 -6 1 12 -260818 -1 -1 0 1;
+#X obj 25 148 tgl 15 0 empty empty 1 3 -6 1 12 -260818 -1 -1 0 1;
+#X obj 8 148 cnv 15 15 15 empty empty Rx 1 10 0 11 -128992 -86277 0
+;
+#X obj 25 148 cnv 15 15 15 empty empty Tx 1 10 0 11 -128992 -13381
+0;
+#X obj 301 43 trigger 0 float;
+#X obj 301 64 select 0;
+#X msg 301 84 0;
+#X msg 405 389 port 1 0;
+#X msg 263 389 port 0 0;
+#X msg 189 389 port 0 255;
+#X msg 331 389 port 1 255;
+#X text 95 291 or send 8-bit ports in one message:;
+#X msg 159 338 port 1 \$1;
+#X msg 91 338 port 0 \$1;
+#X msg 230 338 port 2 \$1;
+#X obj 362 297 tgl 25 0 empty ARDUINO_TEST_RESET ALL 2 12 0 12 -262144
+-1 -1 0 255;
+#X obj 362 246 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
+16383;
+#X obj 362 266 metro 100;
+#X floatatom 362 329 5 0 0 0 - - -;
+#X obj 246 148 tgl 15 0 empty empty 14 0 -6 1 12 -233017 -1 -1 0 1
+;
+#X obj 263 148 tgl 15 0 empty empty 15 0 -6 1 12 -233017 -1 -1 0 1
+;
+#X obj 280 148 tgl 15 0 empty empty 16 0 -6 1 12 -233017 -1 -1 0 1
+;
+#X obj 297 148 tgl 15 0 empty empty 17 0 -6 1 12 -233017 -1 -1 0 1
;
-#X obj 282 148 tgl 15 0 empty empty 12 0 -6 1 12 -233017 -1 -1 0 1
+#X obj 314 148 tgl 15 0 empty empty 18 0 -6 1 12 -233017 -1 -1 0 1
;
-#X obj 299 148 tgl 15 0 empty empty 13 0 -6 1 12 -233017 -1 -1 0 1
+#X obj 331 148 tgl 15 0 empty empty 19 0 -6 1 12 -233017 -1 -1 0 1
;
-#X obj 112 148 tgl 15 0 empty empty 2 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 129 148 tgl 15 0 empty empty 3 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 146 148 tgl 15 0 empty empty 4 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 163 148 tgl 15 0 empty empty 5 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 180 148 tgl 15 0 empty empty 6 4 -6 1 12 -233017 -1 -1 0 1;
-#N canvas 314 233 679 330 generate 0;
-#X obj 42 24 inlet;
-#X obj 82 24 inlet;
-#X obj 121 24 inlet;
-#X obj 161 24 inlet;
-#X obj 201 24 inlet;
-#X obj 241 24 inlet;
-#X obj 280 24 inlet;
-#X obj 320 24 inlet;
-#X obj 361 23 inlet;
-#X obj 401 23 inlet;
-#X obj 440 23 inlet;
-#X obj 480 23 inlet;
-#X obj 520 23 inlet;
-#X msg 42 66 digital 0 \$1;
-#X msg 82 88 digital 1 \$1;
-#X msg 121 110 digital 2 \$1;
-#X msg 161 130 digital 3 \$1;
-#X msg 201 62 digital 4 \$1;
-#X msg 241 84 digital 5 \$1;
-#X msg 280 106 digital 6 \$1;
-#X msg 320 126 digital 7 \$1;
-#X msg 361 58 digital 8 \$1;
-#X msg 401 80 digital 9 \$1;
-#X msg 440 102 digital 10 \$1;
-#X msg 480 122 digital 11 \$1;
-#X msg 520 50 digital 12 \$1;
-#X obj 559 23 inlet;
-#X msg 559 70 digital 13 \$1;
-#X obj 298 284 outlet;
-#X obj 298 245 trigger bang anything;
-#X obj 298 196 list prepend set;
-#X obj 298 220 list trim;
+#X obj 348 148 tgl 15 0 empty empty 20 0 -6 1 12 -233017 -1 -1 0 1
+;
+#X obj 365 148 tgl 15 0 empty empty 21 0 -6 1 12 -233017 -1 -1 0 1
+;
+#N canvas 314 233 1035 340 generate 0;
+#X obj 12 24 inlet;
+#X obj 52 24 inlet;
+#X obj 91 24 inlet;
+#X obj 131 24 inlet;
+#X obj 171 24 inlet;
+#X obj 211 24 inlet;
+#X obj 250 24 inlet;
+#X obj 290 24 inlet;
+#X obj 331 23 inlet;
+#X obj 371 23 inlet;
+#X obj 410 23 inlet;
+#X obj 450 23 inlet;
+#X obj 490 23 inlet;
+#X msg 12 66 digital 0 \$1;
+#X msg 52 88 digital 1 \$1;
+#X msg 91 110 digital 2 \$1;
+#X msg 131 130 digital 3 \$1;
+#X msg 171 62 digital 4 \$1;
+#X msg 211 84 digital 5 \$1;
+#X msg 250 106 digital 6 \$1;
+#X msg 290 126 digital 7 \$1;
+#X msg 331 58 digital 8 \$1;
+#X msg 371 80 digital 9 \$1;
+#X msg 410 102 digital 10 \$1;
+#X msg 450 122 digital 11 \$1;
+#X msg 490 50 digital 12 \$1;
+#X obj 529 23 inlet;
+#X msg 529 70 digital 13 \$1;
+#X obj 513 302 outlet;
+#X obj 513 263 trigger bang anything;
+#X obj 513 214 list prepend set;
+#X obj 513 238 list trim;
+#X obj 570 23 inlet;
+#X obj 610 23 inlet;
+#X obj 650 23 inlet;
+#X obj 689 23 inlet;
+#X msg 570 102 digital 14 \$1;
+#X msg 610 122 digital 15 \$1;
+#X msg 650 50 digital 16 \$1;
+#X msg 689 70 digital 17 \$1;
+#X obj 730 23 inlet;
+#X obj 770 23 inlet;
+#X obj 810 23 inlet;
+#X obj 849 23 inlet;
+#X msg 730 102 digital 18 \$1;
+#X msg 770 122 digital 19 \$1;
+#X msg 810 50 digital 20 \$1;
+#X msg 849 70 digital 21 \$1;
+#X obj 890 23 inlet;
+#X obj 930 23 inlet;
+#X msg 890 102 digital 22 \$1;
+#X msg 930 122 digital 23 \$1;
#X connect 0 0 13 0;
#X connect 1 0 14 0;
#X connect 2 0 15 0;
@@ -303,82 +302,98 @@
#X connect 29 1 28 0;
#X connect 30 0 31 0;
#X connect 31 0 29 0;
-#X restore 78 172 pd generate digital out messages;
-#X obj 348 123 tgl 25 0 empty ARDUINO_TEST_RESET ALL 2 12 0 12 -262144
--1 -1 0 1;
-#X obj 348 72 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 16383
+#X connect 32 0 36 0;
+#X connect 33 0 37 0;
+#X connect 34 0 38 0;
+#X connect 35 0 39 0;
+#X connect 36 0 30 0;
+#X connect 37 0 30 0;
+#X connect 38 0 30 0;
+#X connect 39 0 30 0;
+#X connect 40 0 44 0;
+#X connect 41 0 45 0;
+#X connect 42 0 46 0;
+#X connect 43 0 47 0;
+#X connect 44 0 30 0;
+#X connect 45 0 30 0;
+#X connect 46 0 30 0;
+#X connect 47 0 30 0;
+#X connect 48 0 50 0;
+#X connect 49 0 51 0;
+#X connect 50 0 30 0;
+#X connect 51 0 30 0;
+#X restore 78 201 pd generate digital out messages ------------------
+;
+#X obj 382 148 tgl 15 0 empty empty 22 0 -6 1 12 -233017 -1 -1 0 1
+;
+#X obj 399 148 tgl 15 0 empty empty 23 0 -6 1 12 -233017 -1 -1 0 1
;
-#X obj 348 92 metro 100;
-#X obj 261 9 inlet;
-#X obj 78 148 tgl 15 0 empty empty 0 3 -6 1 12 -260818 -1 -1 0 1;
-#X obj 95 148 tgl 15 0 empty empty 1 3 -6 1 12 -260818 -1 -1 0 1;
-#X obj 78 148 cnv 15 15 15 empty empty Rx 1 10 0 11 -128992 -86277
-0;
-#X obj 95 148 cnv 15 15 15 empty empty Tx 1 10 0 11 -128992 -13381
-0;
-#X obj 261 43 trigger 0 float;
-#X obj 261 64 select 0;
-#X msg 261 84 0;
-#X msg 405 389 port 1 0;
-#X msg 263 389 port 0 0;
-#X msg 189 389 port 0 255;
-#X msg 331 389 port 1 255;
-#X text 95 291 or send 8-bit ports in one message:;
-#X msg 159 338 port 1 \$1;
-#X msg 91 338 port 0 \$1;
-#X msg 230 338 port 2 \$1;
-#X obj 362 297 tgl 25 0 empty ARDUINO_TEST_RESET ALL 2 12 0 12 -262144
--1 -1 0 255;
-#X obj 362 246 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
-16383;
-#X obj 362 266 metro 100;
-#X floatatom 362 329 5 0 0 0 - - -;
#X connect 2 0 1 0;
-#X connect 3 0 15 7;
-#X connect 4 0 15 8;
-#X connect 5 0 15 9;
-#X connect 6 0 15 10;
-#X connect 7 0 15 11;
-#X connect 8 0 15 12;
-#X connect 9 0 15 13;
-#X connect 10 0 15 2;
-#X connect 11 0 15 3;
-#X connect 12 0 15 4;
-#X connect 13 0 15 5;
-#X connect 14 0 15 6;
-#X connect 15 0 2 0;
-#X connect 16 0 9 0;
-#X connect 16 0 8 0;
-#X connect 16 0 7 0;
-#X connect 16 0 6 0;
-#X connect 16 0 5 0;
-#X connect 16 0 4 0;
-#X connect 16 0 3 0;
-#X connect 16 0 14 0;
-#X connect 16 0 13 0;
-#X connect 16 0 12 0;
-#X connect 16 0 11 0;
-#X connect 16 0 10 0;
-#X connect 17 0 18 0;
-#X connect 18 0 16 0;
-#X connect 19 0 24 0;
+#X connect 3 0 46 7;
+#X connect 4 0 46 8;
+#X connect 5 0 46 9;
+#X connect 6 0 46 10;
+#X connect 7 0 46 11;
+#X connect 8 0 46 12;
+#X connect 9 0 46 13;
+#X connect 10 0 46 2;
+#X connect 11 0 46 3;
+#X connect 12 0 46 4;
+#X connect 13 0 46 5;
+#X connect 14 0 46 6;
+#X connect 15 0 9 0;
+#X connect 15 0 8 0;
+#X connect 15 0 7 0;
+#X connect 15 0 6 0;
+#X connect 15 0 5 0;
+#X connect 15 0 4 0;
+#X connect 15 0 3 0;
+#X connect 15 0 14 0;
+#X connect 15 0 13 0;
+#X connect 15 0 12 0;
+#X connect 15 0 11 0;
+#X connect 15 0 10 0;
+#X connect 15 0 43 0;
+#X connect 15 0 44 0;
+#X connect 15 0 45 0;
+#X connect 15 0 42 0;
+#X connect 15 0 41 0;
+#X connect 15 0 40 0;
+#X connect 15 0 39 0;
+#X connect 15 0 38 0;
+#X connect 15 0 48 0;
+#X connect 15 0 47 0;
+#X connect 16 0 17 0;
+#X connect 17 0 15 0;
+#X connect 18 0 23 0;
+#X connect 23 0 24 0;
+#X connect 23 1 16 0;
#X connect 24 0 25 0;
-#X connect 24 1 17 0;
-#X connect 25 0 26 0;
-#X connect 26 0 16 0;
+#X connect 25 0 15 0;
+#X connect 26 0 1 0;
#X connect 27 0 1 0;
#X connect 28 0 1 0;
#X connect 29 0 1 0;
-#X connect 30 0 1 0;
+#X connect 31 0 1 0;
#X connect 32 0 1 0;
#X connect 33 0 1 0;
-#X connect 34 0 1 0;
-#X connect 35 0 38 0;
-#X connect 35 0 34 0;
-#X connect 35 0 32 0;
-#X connect 35 0 33 0;
-#X connect 36 0 37 0;
-#X connect 37 0 35 0;
+#X connect 34 0 37 0;
+#X connect 34 0 33 0;
+#X connect 34 0 31 0;
+#X connect 34 0 32 0;
+#X connect 35 0 36 0;
+#X connect 36 0 34 0;
+#X connect 38 0 46 14;
+#X connect 39 0 46 15;
+#X connect 40 0 46 16;
+#X connect 41 0 46 17;
+#X connect 42 0 46 18;
+#X connect 43 0 46 19;
+#X connect 44 0 46 20;
+#X connect 45 0 46 21;
+#X connect 46 0 2 0;
+#X connect 47 0 46 22;
+#X connect 48 0 46 23;
#X restore 14 244 pd sending digital outs;
#X obj 14 225 tgl 15 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0 16383
;
@@ -491,84 +506,12 @@
#X obj 414 393 unpack 0 0;
#X floatatom 414 413 5 0 0 0 - - -;
#X floatatom 471 413 5 0 0 0 - - -;
-#N canvas 163 104 700 327 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 282 outlet;
-#X obj 305 243 trigger bang anything;
-#X obj 305 196 list prepend set;
-#X obj 305 220 list trim;
-#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 30 0;
-#X connect 14 0 30 0;
-#X connect 15 0 30 0;
-#X connect 16 0 30 0;
-#X connect 17 0 30 0;
-#X connect 18 0 30 0;
-#X connect 19 0 30 0;
-#X connect 20 0 30 0;
-#X connect 21 0 30 0;
-#X connect 22 0 30 0;
-#X connect 23 0 30 0;
-#X connect 24 0 30 0;
-#X connect 25 0 30 0;
-#X connect 26 0 27 0;
-#X connect 27 0 30 0;
-#X connect 29 0 28 0;
-#X connect 29 1 28 0;
-#X connect 30 0 31 0;
-#X connect 31 0 29 0;
-#X restore 329 96 pd send-to-arduino-------------------;
#X obj 394 455 tgl 15 0 empty empty 0 4 23 1 12 -232448 -1 -1 0 1;
#X obj 411 455 tgl 15 0 empty empty 1 4 23 1 12 -232448 -1 -1 0 1;
#X obj 394 455 cnv 15 15 15 empty empty Rx 1 10 0 11 -128992 -86277
0;
#X obj 411 455 cnv 15 15 15 empty empty Tx 1 10 0 11 -128992 -13381
0;
-#X obj 329 77 tgl 15 0 empty empty 0 3 -6 1 12 -260818 -1 -1 0 1;
-#X obj 346 77 tgl 15 0 empty empty 1 3 -6 1 12 -260818 -1 -1 0 1;
-#X obj 329 77 cnv 15 15 15 empty empty Rx 1 10 0 11 -128992 -86277
-0;
-#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 220 272 arduino 1;
#N canvas 649 518 411 212 firmware 0;
@@ -628,7 +571,7 @@
#X obj -313 131 cyclone/prepend 40;
#X msg 66 117 samplingInterval \$1;
#X obj 69 93 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
--1 -1 2000 1;
+-1 -1 0 1;
#X floatatom 27 117 5 0 0 0 - - -;
#X connect 1 0 7 0;
#X connect 2 0 4 0;
@@ -714,78 +657,294 @@ Arduino (also known as Pduino firmware).;
#X connect 3 1 1 0;
#X restore 547 393 pd sysex;
#X text 489 295 <- open to see info;
-#X connect 3 0 89 0;
+#X text 371 13 turn on output mode for each pin:;
+#N canvas 227 262 446 317 pinMode 0;
+#X obj 92 267 outlet;
+#X obj 122 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+2 2 -8 0 10 -261682 -1 -1 0;
+#X obj 132 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+3 2 -8 0 10 -261682 -1 -1 0;
+#X obj 142 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+4 2 -8 0 10 -261682 -1 -1 0;
+#X obj 152 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+5 2 -8 0 10 -261682 -1 -1 0;
+#X obj 162 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+6 2 -8 0 10 -261682 -1 -1 0;
+#X obj 172 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+7 2 -8 0 10 -261682 -1 -1 0;
+#X obj 182 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+8 2 -8 0 10 -261682 -1 -1 0;
+#X obj 192 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+9 2 -8 0 10 -261682 -1 -1 0;
+#X obj 202 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+10 0 -8 0 8 -261682 -1 -1 0;
+#X obj 212 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+11 0 -8 0 8 -261682 -1 -1 0;
+#X obj 222 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+12 0 -8 0 8 -261682 -1 -1 0;
+#X obj 232 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+13 0 -8 0 8 -261682 -1 -1 0;
+#X obj 242 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+14 0 -8 0 8 -261682 -1 -1 0;
+#X obj 252 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+15 0 -8 0 8 -261682 -1 -1 1;
+#X obj 262 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+16 0 -8 0 8 -261682 -1 -1 1;
+#X obj 272 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+17 0 -8 0 8 -261682 -1 -1 0;
+#X obj 282 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+18 0 -8 0 8 -261682 -1 -1 0;
+#X obj 292 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+19 0 -8 0 8 -261682 -1 -1 0;
+#X obj 302 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+20 0 -8 0 8 -261682 -1 -1 0;
+#X obj 312 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+21 0 -8 0 8 -261682 -1 -1 0;
+#N canvas 59 587 1064 355 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 481 295 outlet;
+#X obj 481 256 trigger bang anything;
+#X obj 481 209 list prepend set;
+#X obj 481 233 list trim;
+#X obj 607 23 inlet;
+#X obj 647 23 inlet;
+#X obj 687 23 inlet;
+#X obj 726 23 inlet;
+#X obj 767 23 inlet;
+#X obj 807 23 inlet;
+#X obj 847 23 inlet;
+#X obj 886 23 inlet;
+#X msg 607 102 pinMode 14 \$1;
+#X msg 647 122 pinMode 15 \$1;
+#X msg 687 50 pinMode 16 \$1;
+#X msg 726 70 pinMode 17 \$1;
+#X msg 767 102 pinMode 18 \$1;
+#X msg 807 122 pinMode 19 \$1;
+#X msg 847 50 pinMode 20 \$1;
+#X msg 886 70 pinMode 21 \$1;
+#X obj 927 23 inlet;
+#X obj 967 23 inlet;
+#X msg 927 102 pinMode 22 \$1;
+#X msg 967 122 pinMode 23 \$1;
+#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 30 0;
+#X connect 14 0 30 0;
+#X connect 15 0 30 0;
+#X connect 16 0 30 0;
+#X connect 17 0 30 0;
+#X connect 18 0 30 0;
+#X connect 19 0 30 0;
+#X connect 20 0 30 0;
+#X connect 21 0 30 0;
+#X connect 22 0 30 0;
+#X connect 23 0 30 0;
+#X connect 24 0 30 0;
+#X connect 25 0 30 0;
+#X connect 26 0 27 0;
+#X connect 27 0 30 0;
+#X connect 29 0 28 0;
+#X connect 29 1 28 0;
+#X connect 30 0 31 0;
+#X connect 31 0 29 0;
+#X connect 32 0 40 0;
+#X connect 33 0 41 0;
+#X connect 34 0 42 0;
+#X connect 35 0 43 0;
+#X connect 36 0 44 0;
+#X connect 37 0 45 0;
+#X connect 38 0 46 0;
+#X connect 39 0 47 0;
+#X connect 40 0 30 0;
+#X connect 41 0 30 0;
+#X connect 42 0 30 0;
+#X connect 43 0 30 0;
+#X connect 44 0 30 0;
+#X connect 45 0 30 0;
+#X connect 46 0 30 0;
+#X connect 47 0 30 0;
+#X connect 48 0 50 0;
+#X connect 49 0 51 0;
+#X connect 50 0 30 0;
+#X connect 51 0 30 0;
+#X restore 94 179 pd send-to-arduino----------------------;
+#X obj 322 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+22 0 -8 0 8 -261682 -1 -1 0;
+#X obj 332 100 vradio 10 1 0 5 THIS_HIDES_THE_OUTLET THIS_HIDES_THE_INLET
+23 0 -8 0 8 -261682 -1 -1 0;
+#X obj 100 100 cnv 10 10 50 empty empty Rx 0 23 0 10 -191407 -86277
+0;
+#X obj 111 100 cnv 10 10 50 empty empty Tx 0 23 0 10 -191407 -13381
+0;
+#X connect 1 0 21 2;
+#X connect 2 0 21 3;
+#X connect 3 0 21 4;
+#X connect 4 0 21 5;
+#X connect 5 0 21 6;
+#X connect 6 0 21 7;
+#X connect 7 0 21 8;
+#X connect 8 0 21 9;
+#X connect 9 0 21 10;
+#X connect 10 0 21 11;
+#X connect 11 0 21 12;
+#X connect 12 0 21 13;
+#X connect 13 0 21 14;
+#X connect 14 0 21 15;
+#X connect 15 0 21 16;
+#X connect 16 0 21 17;
+#X connect 17 0 21 18;
+#X connect 18 0 21 19;
+#X connect 19 0 21 20;
+#X connect 20 0 21 21;
+#X connect 21 0 0 0;
+#X connect 22 0 21 22;
+#X connect 23 0 21 23;
+#X coords 0 -1 1 1 242 50 2 100 100;
+#X restore 319 60 pd pinMode;
+#X text 576 95 servo;
+#X text 576 85 pwm;
+#X text 576 57 input;
+#X text 576 66 output;
+#X text 576 76 analog;
+#N canvas 66 58 423 503 analog 0;
+#X obj 38 10 inlet;
+#X obj 131 10 inlet;
+#X obj 38 259 pack float float;
+#X obj 192 113 route float symbol;
+#X obj 188 259 pack float symbol;
+#X text 78 11 pin#;
+#X text 179 10 PWM value or "off";
+#X obj 39 217 cyclone/gate 2;
+#X msg 191 153 1;
+#X msg 252 153 2;
+#X obj 131 34 list;
+#X obj 131 113 float;
+#X obj 131 67 trigger bang anything;
+#X obj 37 427 outlet;
+#X obj 37 356 trigger bang anything;
+#X obj 179 376 list;
+#X msg 179 396 set \$1 \$2 \$3;
+#X msg 37 308 analog \$1 \$2;
+#X connect 0 0 11 0;
+#X connect 1 0 10 0;
+#X connect 2 0 17 0;
+#X connect 3 0 8 0;
+#X connect 3 0 2 1;
+#X connect 3 1 9 0;
+#X connect 3 1 4 1;
+#X connect 4 0 17 0;
+#X connect 7 0 2 0;
+#X connect 7 1 4 0;
+#X connect 8 0 7 0;
+#X connect 9 0 7 0;
+#X connect 10 0 12 0;
+#X connect 11 0 7 1;
+#X connect 12 0 11 0;
+#X connect 12 1 3 0;
+#X connect 14 0 13 0;
+#X connect 14 1 15 0;
+#X connect 15 0 16 0;
+#X connect 16 0 13 0;
+#X connect 17 0 14 0;
+#X restore 41 125 pd analog;
+#X connect 3 0 70 0;
#X connect 4 0 3 0;
#X connect 4 1 6 0;
-#X connect 6 0 89 0;
-#X connect 7 0 34 1;
-#X connect 8 0 38 1;
-#X connect 9 0 89 0;
-#X connect 10 0 89 0;
+#X connect 6 0 70 0;
+#X connect 7 0 91 1;
+#X connect 8 0 37 1;
+#X connect 9 0 70 0;
+#X connect 10 0 70 0;
#X connect 11 0 10 0;
-#X connect 19 0 34 0;
-#X connect 34 0 35 0;
-#X connect 35 0 89 0;
-#X connect 36 0 89 0;
-#X connect 37 0 89 0;
-#X connect 38 0 58 0;
-#X connect 39 0 79 2;
-#X connect 40 0 79 3;
-#X connect 41 0 79 4;
-#X connect 42 0 79 5;
-#X connect 43 0 79 6;
-#X connect 44 0 79 7;
-#X connect 45 0 79 8;
-#X connect 46 0 79 9;
-#X connect 47 0 79 10;
-#X connect 48 0 79 11;
-#X connect 49 0 79 12;
-#X connect 50 0 79 13;
-#X connect 52 0 89 0;
-#X connect 53 0 89 0;
-#X connect 54 0 53 0;
-#X connect 58 0 59 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;
-#X connect 59 3 60 3;
-#X connect 59 4 60 4;
-#X connect 59 5 60 5;
-#X connect 59 6 60 6;
-#X connect 59 7 60 7;
-#X connect 60 0 12 0;
-#X connect 60 1 13 0;
-#X connect 60 2 14 0;
-#X connect 60 3 15 0;
-#X connect 60 4 16 0;
-#X connect 60 5 17 0;
-#X connect 60 6 56 0;
-#X connect 60 7 57 0;
-#X connect 61 2 62 0;
-#X connect 61 3 63 0;
-#X connect 61 4 64 0;
-#X connect 61 5 65 0;
-#X connect 61 6 66 0;
-#X connect 61 7 67 0;
-#X connect 61 8 68 0;
-#X connect 61 9 69 0;
-#X connect 61 10 70 0;
-#X connect 61 11 71 0;
-#X connect 61 12 72 0;
-#X connect 61 13 73 0;
-#X connect 75 0 90 0;
-#X connect 76 0 77 0;
-#X connect 76 1 78 0;
-#X connect 79 0 52 0;
-#X connect 89 0 38 0;
-#X connect 89 1 100 0;
-#X connect 91 0 89 0;
-#X connect 92 0 89 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 101 0;
-#X connect 98 0 9 0;
-#X connect 100 0 75 0;
+#X connect 19 0 91 0;
+#X connect 34 0 70 0;
+#X connect 35 0 70 0;
+#X connect 36 0 70 0;
+#X connect 37 0 44 0;
+#X connect 38 0 70 0;
+#X connect 39 0 70 0;
+#X connect 40 0 39 0;
+#X connect 44 0 45 0;
+#X connect 44 1 76 0;
+#X connect 45 0 46 0;
+#X connect 45 1 46 1;
+#X connect 45 2 46 2;
+#X connect 45 3 46 3;
+#X connect 45 4 46 4;
+#X connect 45 5 46 5;
+#X connect 45 6 46 6;
+#X connect 45 7 46 7;
+#X connect 46 0 12 0;
+#X connect 46 1 13 0;
+#X connect 46 2 14 0;
+#X connect 46 3 15 0;
+#X connect 46 4 16 0;
+#X connect 46 5 17 0;
+#X connect 46 6 42 0;
+#X connect 46 7 43 0;
+#X connect 47 2 48 0;
+#X connect 47 3 49 0;
+#X connect 47 4 50 0;
+#X connect 47 5 51 0;
+#X connect 47 6 52 0;
+#X connect 47 7 53 0;
+#X connect 47 8 54 0;
+#X connect 47 9 55 0;
+#X connect 47 10 56 0;
+#X connect 47 11 57 0;
+#X connect 47 12 58 0;
+#X connect 47 13 59 0;
+#X connect 61 0 71 0;
+#X connect 62 0 63 0;
+#X connect 62 1 64 0;
+#X connect 70 0 37 0;
+#X connect 70 1 81 0;
+#X connect 72 0 70 0;
+#X connect 73 0 70 0;
+#X connect 75 0 70 0;
+#X connect 76 0 47 0;
+#X connect 76 1 62 0;
+#X connect 76 2 74 0;
+#X connect 76 3 82 0;
+#X connect 79 0 9 0;
+#X connect 81 0 61 0;
+#X connect 85 0 38 0;
+#X connect 91 0 34 0;