aboutsummaryrefslogtreecommitdiff
path: root/arduino.pd
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-06-24 00:43:07 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-06-24 00:43:07 +0000
commit7f802dda19e43dba9496cea517423c5795730765 (patch)
tree8d6f0699642ea181b5d879931fe081422b30ed10 /arduino.pd
parente841e007e0198a88375003a49bad7a1129d2ed38 (diff)
added outputMode messages and examples for using [bytemask] to set digital output pins
svn path=/trunk/externals/hardware/arduino/; revision=5291
Diffstat (limited to 'arduino.pd')
-rw-r--r--arduino.pd334
1 files changed, 178 insertions, 156 deletions
diff --git a/arduino.pd b/arduino.pd
index d15c55c..e69a362 100644
--- a/arduino.pd
+++ b/arduino.pd
@@ -1,156 +1,178 @@
-#N canvas 81 0 609 526 10;
-#X text 390 446 released under the GNU GPL;
-#X text 12 446 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
-;
-#N canvas 562 456 466 316 alternate 0;
-#X obj 87 8 inlet;
-#X obj 151 244 outlet;
-#X obj 319 247 outlet;
-#X obj 159 197 spigot;
-#X obj 319 191 spigot;
-#X obj 158 57 trigger anything bang;
-#X obj 196 152 abs;
-#X floatatom 212 198 5 0 0 0 - - -;
-#X obj 356 147 abs;
-#X msg 295 77 1;
-#X obj 196 173 float;
-#X obj 355 168 float;
-#X obj 86 34 route reset;
-#X obj 356 128 -;
-#X obj 196 133 -;
-#X obj 15 35 loadbang;
-#X obj 86 54 bang;
-#X msg 73 82 1;
-#X msg 103 82 0;
-#X connect 0 0 12 0;
-#X connect 3 0 1 0;
-#X connect 4 0 2 0;
-#X connect 5 0 3 0;
-#X connect 5 0 4 0;
-#X connect 5 1 9 0;
-#X connect 6 0 10 0;
-#X connect 8 0 11 0;
-#X connect 9 0 13 0;
-#X connect 9 0 14 0;
-#X connect 10 0 3 1;
-#X connect 10 0 7 0;
-#X connect 10 0 14 1;
-#X connect 11 0 4 1;
-#X connect 11 0 13 1;
-#X connect 12 0 16 0;
-#X connect 12 1 5 0;
-#X connect 13 0 8 0;
-#X connect 14 0 6 0;
-#X connect 15 0 18 0;
-#X connect 15 0 17 0;
-#X connect 16 0 18 0;
-#X connect 16 0 17 0;
-#X connect 17 0 14 1;
-#X connect 18 0 13 1;
-#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 126 425 outlet;
-#X obj 494 241 outlet;
-#X obj 11 66 comport \$1 9600;
-#N canvas 240 282 607 443 command 1;
-#X obj 79 8 inlet;
-#X obj 55 378 outlet;
-#X obj 155 114 * 255;
-#X obj 100 114 * 255;
-#X obj 45 114 * 255;
-#X obj 155 93 clip 0 1;
-#X obj 100 93 clip 0 1;
-#X obj 45 93 clip 0 1;
-#X msg 155 135 232 \, \$1;
-#X msg 100 135 231 \, \$1;
-#X msg 45 135 230 \, \$1;
-#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 obj 370 151 >> 7;
-#X connect 0 0 16 0;
-#X connect 2 0 8 0;
-#X connect 3 0 9 0;
-#X connect 4 0 10 0;
-#X connect 5 0 2 0;
-#X connect 6 0 3 0;
-#X connect 7 0 4 0;
-#X connect 8 0 1 0;
-#X connect 9 0 1 0;
-#X connect 10 0 1 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 0 23 0;
-#X connect 20 1 18 0;
-#X connect 20 2 21 0;
-#X connect 21 0 1 0;
-#X connect 23 0 19 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;
+#N canvas 449 224 612 492 10;
+#X text 414 457 released under the GNU GPL;
+#X text 9 457 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
+;
+#N canvas 562 456 466 316 alternate 0;
+#X obj 87 8 inlet;
+#X obj 151 244 outlet;
+#X obj 319 247 outlet;
+#X obj 159 197 spigot;
+#X obj 319 191 spigot;
+#X obj 158 57 trigger anything bang;
+#X obj 196 152 abs;
+#X floatatom 212 198 5 0 0 0 - - -;
+#X obj 356 147 abs;
+#X msg 295 77 1;
+#X obj 196 173 float;
+#X obj 355 168 float;
+#X obj 86 34 route reset;
+#X obj 356 128 -;
+#X obj 196 133 -;
+#X obj 15 35 loadbang;
+#X obj 86 54 bang;
+#X msg 73 82 1;
+#X msg 103 82 0;
+#X connect 0 0 12 0;
+#X connect 3 0 1 0;
+#X connect 4 0 2 0;
+#X connect 5 0 3 0;
+#X connect 5 0 4 0;
+#X connect 5 1 9 0;
+#X connect 6 0 10 0;
+#X connect 8 0 11 0;
+#X connect 9 0 13 0;
+#X connect 9 0 14 0;
+#X connect 10 0 3 1;
+#X connect 10 0 7 0;
+#X connect 10 0 14 1;
+#X connect 11 0 4 1;
+#X connect 11 0 13 1;
+#X connect 12 0 16 0;
+#X connect 12 1 5 0;
+#X connect 13 0 8 0;
+#X connect 14 0 6 0;
+#X connect 15 0 18 0;
+#X connect 15 0 17 0;
+#X connect 16 0 18 0;
+#X connect 16 0 17 0;
+#X connect 17 0 14 1;
+#X connect 18 0 13 1;
+#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 126 425 outlet;
+#X obj 494 241 outlet;
+#X obj 11 66 comport \$1 9600;
+#N canvas 528 330 562 307 command 0;
+#X obj 79 8 inlet;
+#X obj 198 269 outlet;
+#X obj 135 115 * 255;
+#X obj 70 115 * 255;
+#X obj 5 115 * 255;
+#X obj 135 94 clip 0 1;
+#X obj 70 94 clip 0 1;
+#X obj 5 94 clip 0 1;
+#X msg 135 136 232 \, \$1;
+#X msg 70 136 231 \, \$1;
+#X msg 5 136 230 \, \$1;
+#X obj 200 94 clip 0 6;
+#X obj 200 135 + 240;
+#X obj 263 94 clip 0 1;
+#X obj 263 115 int;
+#X obj 263 137 + 238;
+#N canvas 0 22 458 308 digital-out 0;
+#X obj 67 20 inlet;
+#X obj 85 280 outlet;
+#X obj 65 108 route float;
+#X obj 221 191 & 127;
+#X obj 140 208 & 127;
+#X obj 140 164 trigger float float bang;
+#X msg 303 186 255;
+#X text 104 89 break up digital-out bitmask;
+#X obj 140 186 >> 7;
+#X connect 0 0 2 0;
+#X connect 2 0 5 0;
+#X connect 2 1 1 0;
+#X connect 3 0 1 0;
+#X connect 4 0 1 0;
+#X connect 5 0 8 0;
+#X connect 5 1 3 0;
+#X connect 5 2 6 0;
+#X connect 6 0 1 0;
+#X connect 8 0 4 0;
+#X restore 431 94 pd digital-out;
+#X obj 80 53 route PWM0 PWM1 PWM2 analogIns digitalIns outputMode;
+#N canvas 0 22 466 316 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 178 126 * 14;
+#X obj 105 197 + 200;
+#X connect 0 0 2 0;
+#X connect 2 0 3 0;
+#X connect 2 1 4 0;
+#X connect 3 0 5 0;
+#X connect 4 0 3 1;
+#X connect 5 0 1 0;
+#X restore 334 94 pd outputMode;
+#X connect 0 0 17 0;
+#X connect 2 0 8 0;
+#X connect 3 0 9 0;
+#X connect 4 0 10 0;
+#X connect 5 0 2 0;
+#X connect 6 0 3 0;
+#X connect 7 0 4 0;
+#X connect 8 0 1 0;
+#X connect 9 0 1 0;
+#X connect 10 0 1 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 1 0;
+#X connect 17 0 7 0;
+#X connect 17 1 6 0;
+#X connect 17 2 5 0;
+#X connect 17 3 11 0;
+#X connect 17 4 13 0;
+#X connect 17 5 18 0;
+#X connect 17 6 16 0;
+#X connect 18 0 1 0;
+#X restore 11 22 pd command processing;
+#X obj 66 132 moses 128;
+#X msg 27 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 287 255 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;