aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arduino.pd124
1 files changed, 76 insertions, 48 deletions
diff --git a/arduino.pd b/arduino.pd
index 38a1720..aae3865 100644
--- a/arduino.pd
+++ b/arduino.pd
@@ -1,8 +1,8 @@
-#N canvas 181 226 585 366 10;
+#N canvas 174 444 585 366 10;
#X obj 32 26 inlet;
#X obj 32 304 outlet;
#X obj 515 304 outlet;
-#N canvas 203 350 822 340 command 1;
+#N canvas 203 350 822 340 command 0;
#X obj 24 7 inlet;
#X obj 299 298 outlet;
#N canvas 631 434 547 478 digital-out 0;
@@ -72,24 +72,23 @@
#X connect 26 1 24 0;
#X connect 27 0 21 0;
#X restore 326 122 pd digital-out;
-#N canvas 82 280 540 347 pinMode 0;
-#X obj 51 18 inlet;
-#X obj 51 320 outlet;
-#X obj 174 72 unpack float float;
-#X text 141 71 pin#;
-#X text 291 73 mode;
-#X obj 174 117 moses 128;
-#X msg 51 197 244;
-#X text 194 101 do bounds checking to be safe;
-#X obj 51 222 pack float float float;
-#X obj 279 117 moses 128;
-#X obj 225 225 bang;
-#X obj 225 290 list trim;
-#X obj 225 270 list prepend ERROR:;
-#X msg 225 245 pinMode pin# greater than 127;
-#X obj 330 183 bang;
-#X msg 330 203 pinMode mode greater than 127;
-#X obj 225 310 print [arduino];
+#N canvas 49 460 541 377 pinMode 0;
+#X obj 51 8 inlet;
+#X obj 51 350 outlet;
+#X text 141 54 pin#;
+#X text 321 56 mode;
+#X obj 174 147 moses 128;
+#X msg 51 227 244;
+#X text 194 131 do bounds checking to be safe;
+#X obj 51 252 pack float float float;
+#X obj 279 147 moses 128;
+#X obj 225 255 bang;
+#X obj 225 320 list trim;
+#X obj 225 300 list prepend ERROR:;
+#X msg 225 275 pinMode pin# greater than 127;
+#X obj 330 213 bang;
+#X msg 330 233 pinMode mode greater than 127;
+#X obj 225 340 print [arduino];
#N canvas 580 301 396 304 turn 0;
#X obj 123 21 inlet;
#X obj 43 21 inlet;
@@ -116,28 +115,62 @@
#X connect 9 0 5 1;
#X connect 11 0 12 0;
#X connect 12 0 4 0;
-#X restore 174 154 pd turn digital reporting on;
-#X obj 51 42 trigger bang anything;
-#X connect 0 0 18 0;
-#X connect 2 0 5 0;
-#X connect 2 1 9 0;
-#X connect 5 0 8 1;
-#X connect 5 0 17 0;
-#X connect 5 1 10 0;
-#X connect 6 0 8 0;
+#X restore 174 184 pd turn digital reporting on;
+#X obj 51 32 trigger bang anything;
+#X obj 174 55 zexy/unpack float float;
+#X obj 309 78 route float symbol;
+#N canvas 0 22 450 300 s2f 0;
+#X obj 72 14 inlet;
+#X obj 72 265 outlet;
+#X obj 72 69 select input output analog pwm servo;
+#X obj 285 262 outlet;
+#X msg 72 95 0;
+#X msg 114 95 1;
+#X msg 157 95 2;
+#X msg 199 95 3;
+#X msg 242 95 4;
+#X connect 0 0 2 0;
+#X connect 2 0 4 0;
+#X connect 2 1 5 0;
+#X connect 2 2 6 0;
+#X connect 2 3 7 0;
+#X connect 2 4 8 0;
+#X connect 2 5 3 0;
+#X connect 4 0 1 0;
+#X connect 5 0 1 0;
+#X connect 6 0 1 0;
+#X connect 7 0 1 0;
#X connect 8 0 1 0;
-#X connect 9 0 8 2;
-#X connect 9 0 17 1;
-#X connect 9 1 14 0;
-#X connect 10 0 13 0;
-#X connect 11 0 16 0;
+#X restore 361 99 pd s2f;
+#X obj 414 120 list;
+#X msg 414 141 unknown pinMode: \$1;
+#X connect 0 0 17 0;
+#X connect 4 0 7 1;
+#X connect 4 0 16 0;
+#X connect 4 1 9 0;
+#X connect 5 0 7 0;
+#X connect 7 0 1 0;
+#X connect 8 0 7 2;
+#X connect 8 0 16 1;
+#X connect 8 1 13 0;
+#X connect 9 0 12 0;
+#X connect 10 0 15 0;
+#X connect 11 0 10 0;
#X connect 12 0 11 0;
-#X connect 13 0 12 0;
-#X connect 14 0 15 0;
-#X connect 15 0 12 0;
-#X connect 17 0 1 0;
-#X connect 18 0 6 0;
-#X connect 18 1 2 0;
+#X connect 13 0 14 0;
+#X connect 14 0 11 0;
+#X connect 16 0 1 0;
+#X connect 17 0 5 0;
+#X connect 17 1 18 0;
+#X connect 18 0 4 0;
+#X connect 18 1 19 0;
+#X connect 19 0 8 0;
+#X connect 19 1 20 0;
+#X connect 19 2 21 0;
+#X connect 20 0 8 0;
+#X connect 20 1 21 0;
+#X connect 21 0 22 0;
+#X connect 22 0 11 0;
#X restore 238 94 pd pinMode;
#N canvas 300 373 372 380 pwm 0;
#X obj 44 14 inlet;
@@ -753,13 +786,10 @@ byte left over;
#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;
-#X obj 188 203 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
-1;
-#X obj 188 181 route open;
#X obj 450 83 print [arduino];
#X obj 450 36 loadbang;
#X text 417 7 supports Firmata v2.1;
-#X msg 450 59 version_0.5beta7;
+#X msg 450 59 version_0.5beta8;
#X connect 0 0 3 0;
#X connect 3 0 8 0;
#X connect 5 0 3 0;
@@ -767,10 +797,8 @@ byte left over;
#X connect 8 0 6 0;
#X connect 8 1 5 0;
#X connect 8 1 2 0;
-#X connect 8 1 13 0;
#X connect 9 0 1 0;
#X connect 9 0 7 0;
#X connect 9 1 2 0;
-#X connect 13 0 12 0;
-#X connect 15 0 17 0;
-#X connect 17 0 14 0;
+#X connect 13 0 15 0;
+#X connect 15 0 12 0;