aboutsummaryrefslogtreecommitdiff
path: root/arduino.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-22 17:13:53 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-05-22 17:13:53 +0000
commit2e1d3efb83a49020a189ee27f518e92a2ee965c1 (patch)
treef4367744c32469098198b194b9c4abbb51bc214d /arduino.pd
parent722d40641e24d433684dce93c03333ee2b57c7d7 (diff)
expanded [arduino] object and cleaned up the help patch; commented Arduino code and enabled digitalInput, tho it doesn't seem to work yet; it seems that there are bugs in [comport] since I can make it crash with the stress test with the new OVERLAPPED mode, and the older synchronous mode
svn path=/trunk/externals/hardware/arduino/; revision=5108
Diffstat (limited to 'arduino.pd')
-rw-r--r--arduino.pd183
1 files changed, 89 insertions, 94 deletions
diff --git a/arduino.pd b/arduino.pd
index 62fca08..fd93628 100644
--- a/arduino.pd
+++ b/arduino.pd
@@ -1,9 +1,8 @@
-#N canvas 81 0 600 527 10;
-#X obj 388 -14 import cyclone zexy;
+#N canvas 81 0 605 522 10;
#X text 390 446 released under the GNU GPL;
-#X text 17 448 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
+#X text 12 446 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
;
-#N canvas 630 546 462 312 alternate 0;
+#N canvas 562 456 466 316 alternate 0;
#X obj 87 8 inlet;
#X obj 151 244 outlet;
#X obj 319 247 outlet;
@@ -48,41 +47,21 @@
#X connect 16 0 17 0;
#X connect 17 0 14 1;
#X connect 18 0 13 1;
-#X restore 67 131 pd alternate;
-#X msg 11 100 reset;
-#X obj 121 173 +;
-#X obj 121 194 trigger bang float;
-#X obj 127 345 pack symbol float;
-#X msg 125 228 0;
-#X obj 349 135 gate 4;
-#X obj 340 159 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 358 159 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 377 159 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 396 159 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 387 114 metro 400;
-#X obj 388 94 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
-;
-#X obj 316 61 float;
-#X obj 359 61 + 1;
-#X obj 316 27 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
--1;
-#X obj 402 59 bang;
-#X msg 335 27 1;
-#X obj 316 83 moses 5;
-#X obj 11 58 select 255;
-#X obj 134 152 * 128;
+#X restore 66 161 pd alternate;
+#X msg 11 130 reset;
+#X obj 120 203 +;
+#X obj 120 224 trigger bang float;
+#X obj 126 375 pack symbol float;
+#X msg 124 258 0;
+#X obj 11 108 select 255;
+#X obj 133 182 * 128;
#X obj 11 -9 inlet;
-#X obj 127 395 outlet;
-#X obj 492 396 outlet;
-#X obj 11 36 comport \$1 9600;
-#N canvas 0 0 466 316 command 0;
+#X obj 126 425 outlet;
+#X obj 494 241 outlet;
+#X obj 11 66 comport \$1 9600;
+#N canvas 240 282 603 439 command 0;
#X obj 79 8 inlet;
-#X obj 313 267 outlet;
-#X obj 79 53 route PWM0 PWM1 PWM2;
+#X obj 55 378 outlet;
#X obj 155 114 * 255;
#X obj 100 114 * 255;
#X obj 45 114 * 255;
@@ -92,67 +71,83 @@
#X msg 155 135 232 \, \$1;
#X msg 100 135 231 \, \$1;
#X msg 45 135 230 \, \$1;
-#X connect 0 0 2 0;
+#X obj 210 94 clip 0 6;
+#X obj 210 135 + 240;
+#X obj 263 94 clip 0 1;
+#X obj 263 115 int;
+#X obj 263 137 + 238;
+#X obj 79 53 route PWM0 PWM1 PWM2 analogIns digitalIns;
+#X obj 322 93 route float;
+#X obj 439 152 & 127;
+#X obj 370 173 & 127;
+#X obj 370 129 trigger float float bang;
+#X msg 494 154 255;
+#X text 337 56 break up digital-out bitmask;
+#X floatatom 321 194 5 0 0 0 - - -;
+#X connect 0 0 16 0;
#X connect 2 0 8 0;
-#X connect 2 1 7 0;
-#X connect 2 2 6 0;
-#X connect 2 3 1 0;
#X connect 3 0 9 0;
#X connect 4 0 10 0;
-#X connect 5 0 11 0;
+#X connect 5 0 2 0;
#X connect 6 0 3 0;
#X connect 7 0 4 0;
-#X connect 8 0 5 0;
+#X connect 8 0 1 0;
#X connect 9 0 1 0;
#X connect 10 0 1 0;
-#X connect 11 0 1 0;
-#X restore 11 12 pd command processing;
-#X obj 67 94 moses 128;
-#X msg 48 316 symbol digital;
-#X obj 143 315 makefilename analog%c;
-#X obj 100 249 float;
-#X obj 139 249 + 1;
-#X obj 127 370 list trim;
-#X obj 100 271 select 0;
-#X text 373 418 DEBUG/RAW data (this will change);
-#X obj 143 293 + 47;
-#X connect 3 0 5 0;
-#X connect 3 1 23 0;
-#X connect 4 0 3 0;
-#X connect 4 0 8 0;
-#X connect 5 0 6 0;
-#X connect 6 0 32 0;
-#X connect 6 1 7 1;
-#X connect 7 0 34 0;
-#X connect 8 0 32 1;
-#X connect 9 0 10 0;
-#X connect 9 1 11 0;
-#X connect 9 2 12 0;
-#X connect 9 3 13 0;
-#X connect 14 0 9 1;
-#X connect 15 0 14 0;
-#X connect 16 0 21 0;
-#X connect 17 0 16 1;
-#X connect 18 0 16 0;
-#X connect 19 0 20 0;
-#X connect 20 0 16 0;
-#X connect 21 0 17 0;
-#X connect 21 0 9 0;
-#X connect 21 1 19 0;
-#X connect 22 0 4 0;
-#X connect 22 1 29 0;
-#X connect 23 0 5 1;
-#X connect 24 0 28 0;
-#X connect 27 0 22 0;
-#X connect 27 0 26 0;
-#X connect 28 0 27 0;
-#X connect 29 0 3 0;
-#X connect 30 0 7 0;
-#X connect 31 0 7 0;
-#X connect 32 0 33 0;
-#X connect 32 0 35 0;
-#X connect 33 0 32 1;
-#X connect 34 0 25 0;
-#X connect 35 0 30 0;
-#X connect 35 1 37 0;
-#X connect 37 0 31 0;
+#X connect 11 0 12 0;
+#X connect 12 0 1 0;
+#X connect 13 0 14 0;
+#X connect 14 0 15 0;
+#X connect 15 0 1 0;
+#X connect 16 0 7 0;
+#X connect 16 1 6 0;
+#X connect 16 2 5 0;
+#X connect 16 3 11 0;
+#X connect 16 4 13 0;
+#X connect 16 5 17 0;
+#X connect 17 0 20 0;
+#X connect 17 1 1 0;
+#X connect 18 0 1 0;
+#X connect 19 0 1 0;
+#X connect 20 2 21 0;
+#X connect 21 0 1 0;
+#X restore 11 22 pd command processing;
+#X obj 66 132 moses 128;
+#X msg 47 346 symbol digital;
+#X obj 142 345 makefilename analog%c;
+#X obj 99 279 float;
+#X obj 138 279 + 1;
+#X obj 126 400 list trim;
+#X obj 99 301 select 0;
+#X text 291 241 DEBUG/RAW data (this will change);
+#X obj 142 323 + 47;
+#X obj 443 -5 inlet;
+#X text 382 -10 raw input;
+#X text 48 -11 processed input;
+#X connect 2 0 4 0;
+#X connect 2 1 9 0;
+#X connect 3 0 2 0;
+#X connect 3 0 7 0;
+#X connect 4 0 5 0;
+#X connect 5 0 18 0;
+#X connect 5 1 6 1;
+#X connect 6 0 20 0;
+#X connect 7 0 18 1;
+#X connect 8 0 3 0;
+#X connect 8 1 15 0;
+#X connect 9 0 4 1;
+#X connect 10 0 14 0;
+#X connect 13 0 8 0;
+#X connect 13 0 12 0;
+#X connect 14 0 13 0;
+#X connect 15 0 2 0;
+#X connect 16 0 6 0;
+#X connect 17 0 6 0;
+#X connect 18 0 19 0;
+#X connect 18 0 21 0;
+#X connect 19 0 18 1;
+#X connect 20 0 11 0;
+#X connect 21 0 16 0;
+#X connect 21 1 23 0;
+#X connect 23 0 17 0;
+#X connect 24 0 13 0;