aboutsummaryrefslogtreecommitdiff
path: root/arduino.pd
diff options
context:
space:
mode:
Diffstat (limited to 'arduino.pd')
-rw-r--r--arduino.pd58
1 files changed, 35 insertions, 23 deletions
diff --git a/arduino.pd b/arduino.pd
index 6384c41..b44a767 100644
--- a/arduino.pd
+++ b/arduino.pd
@@ -1,4 +1,4 @@
-#N canvas 527 196 664 533 10;
+#N canvas 404 56 676 545 10;
#X obj 504 -5 import flatspace;
#X text 414 457 released under the GNU GPL;
#X text 9 457 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
@@ -57,7 +57,7 @@
#X obj 11 -9 inlet;
#X obj 126 425 outlet;
#X obj 494 241 outlet;
-#N canvas 678 51 534 329 command 0;
+#N canvas 415 22 542 337 command 0;
#X obj 29 8 inlet;
#X obj 148 269 outlet;
#X obj 100 94 clip 0 6;
@@ -84,25 +84,39 @@
#X connect 7 0 4 0;
#X connect 8 0 1 0;
#X restore 403 93 pd digital-out;
-#N canvas 133 22 478 328 outputMode 0;
-#X obj 81 11 inlet;
-#X obj 105 275 outlet;
-#X obj 81 70 unpack float float;
-#X obj 105 176 +;
-#X obj 105 197 + 130;
-#X obj 178 126 * 70;
-#X text 152 198 input commands = 130-143;
-#X text 216 127 output commands = 200-213;
-#X connect 0 0 2 0;
+#N canvas 90 168 520 327 outputMode 0;
+#X obj 60 11 inlet;
+#X obj 175 275 outlet;
+#X obj 175 87 unpack float float;
+#X obj 175 176 +;
+#X obj 175 197 + 130;
+#X obj 296 126 * 70;
+#X text 222 198 input commands = 130-143;
+#X text 334 127 output commands = 200-213;
+#X msg 61 229 151;
+#X obj 60 48 trigger bang anything;
+#X obj 61 182 float;
+#X text 142 86 pin#;
+#X text 312 87 mode;
+#X text 89 229 send 151/ENABLE_DIGITAL_INPUT whenever a pin is set
+to input;
+#X obj 61 202 select 0;
+#X connect 0 0 9 0;
#X connect 2 0 3 0;
#X connect 2 1 5 0;
+#X connect 2 1 10 1;
#X connect 3 0 4 0;
#X connect 4 0 1 0;
#X connect 5 0 3 1;
+#X connect 8 0 1 0;
+#X connect 9 0 10 0;
+#X connect 9 1 2 0;
+#X connect 10 0 14 0;
+#X connect 14 0 8 0;
#X restore 241 94 pd outputMode;
#X obj 100 135 + 160;
#X obj 171 137 + 150;
-#N canvas 345 422 474 324 pwm 0;
+#N canvas 345 422 478 328 pwm 0;
#X obj 66 8 inlet;
#X obj 102 276 outlet;
#X obj 238 139 * 255;
@@ -137,10 +151,9 @@
#X connect 14 0 7 0;
#X connect 14 0 8 1;
#X restore 30 94 pd pwm;
-#X obj 22 233 print PWM;
#X obj 46 52 route pwm analogIns digitalIns outputMode info;
#X msg 355 94 info;
-#X connect 0 0 11 0;
+#X connect 0 0 10 0;
#X connect 2 0 7 0;
#X connect 3 0 4 0;
#X connect 4 0 8 0;
@@ -149,14 +162,13 @@
#X connect 7 0 1 0;
#X connect 8 0 1 0;
#X connect 9 0 1 0;
-#X connect 9 0 10 0;
-#X connect 11 0 9 0;
-#X connect 11 1 2 0;
-#X connect 11 2 3 0;
-#X connect 11 3 6 0;
-#X connect 11 4 12 0;
-#X connect 11 5 5 0;
-#X connect 12 0 1 0;
+#X connect 10 0 9 0;
+#X connect 10 1 2 0;
+#X connect 10 2 3 0;
+#X connect 10 3 6 0;
+#X connect 10 4 11 0;
+#X connect 10 5 5 0;
+#X connect 11 0 1 0;
#X restore 11 22 pd command processing;
#X obj 66 132 moses 128;
#X msg 27 346 symbol digital;