aboutsummaryrefslogtreecommitdiff
path: root/arduino-test.pd
diff options
context:
space:
mode:
Diffstat (limited to 'arduino-test.pd')
-rw-r--r--arduino-test.pd204
1 files changed, 115 insertions, 89 deletions
diff --git a/arduino-test.pd b/arduino-test.pd
index 477489e..178fa2f 100644
--- a/arduino-test.pd
+++ b/arduino-test.pd
@@ -1,4 +1,4 @@
-#N canvas 458 53 674 529 10;
+#N canvas 704 22 674 529 10;
#X obj 512 7 import hardware mapping;
#X obj 323 126 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577
0;
@@ -6,13 +6,13 @@
0;
#X obj 155 180 cnv 15 60 22 empty empty empty 20 12 0 14 -253938 -66577
0;
-#X msg 161 182 open 1;
+#X msg 161 182 open 4;
#N canvas 128 22 525 433 serin 0;
-#X obj 180 61 cnv 15 15 15 empty \$0-number-canvas 1 4 8 0 14 -233017
+#X obj 180 61 cnv 15 15 15 empty \$0-number-canvas 4 4 8 0 14 -233017
-1 0;
#X obj 200 225 s \$0-number-canvas;
#X obj 60 61 hradio 15 1 1 8 empty empty empty 0 -6 0 8 -225271 -1
--1 1;
+-1 4;
#X obj 60 13 inlet;
#X msg 200 202 label \$1;
#X obj 200 180 makefilename %d;
@@ -60,11 +60,11 @@
1 10 -225271 -1 -1 0 0;
#X obj 277 322 tgl 15 1 empty empty empty 0 -6 0 8 -225271 -1 -1 1
1;
-#X obj 455 207 tgl 15 1 empty empty empty 0 -6 0 8 -257472 -1 -1 1
+#X obj 455 207 tgl 15 1 empty empty empty 0 -6 0 8 -257472 -1 -1 0
1;
#X text 478 206 enable/disable digitalIns;
#X msg 455 225 digitalIns \$1;
-#X msg 455 183 analogIns 5 1;
+#X msg 455 183 analogIns 5 0;
#N canvas 162 133 610 460 serin 0;
#X obj 59 337 outlet;
#X obj 59 266 trigger bang anything;
@@ -179,7 +179,6 @@
#X floatatom 206 436 5 0 0 3 a4 - -;
#X floatatom 252 436 5 0 0 3 a5 - -;
#X text 300 301 <- argument sets port #;
-#X msg 62 109 off;
#X obj 40 81 hradio 15 1 0 14 empty empty empty 0 -6 0 8 -176124 -1
-1 0;
#X text 148 67 7;
@@ -237,7 +236,7 @@
#X connect 16 0 17 0;
#X connect 17 0 14 0;
#X restore 41 135 pd pwm;
-#X msg 41 157 pwm 11 0;
+#X msg 41 157 pwm 9 off;
#X msg 319 175 info;
#X msg 358 175 version;
#X obj 230 322 spigot;
@@ -256,12 +255,12 @@ Arduino (previously known as Pduino firmware).;
#X obj 533 87 tgl 15 0 empty empty 12 0 -6 1 12 -260818 -1 -1 0 1;
#X obj 550 87 tgl 15 0 empty empty 13 0 -6 1 12 -260818 -1 -1 0 1;
#X text 328 54 turn on output mode for each pin (off=input);
-#X msg 329 128 pinMode 13 1;
-#N canvas 101 54 475 352 sending 0;
+#X msg 329 128 pinMode 12 1;
+#N canvas 69 607 475 352 sending 0;
#X obj 69 158 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577
0;
#X obj 78 244 outlet;
-#X msg 78 161 digital 0 0;
+#X msg 78 161 digital 12 0;
#X obj 197 98 tgl 15 0 empty empty 7 4 -6 1 12 -233017 -1 -1 0 1;
#X obj 214 98 tgl 15 0 empty empty 8 4 -6 1 12 -233017 -1 -1 0 1;
#X obj 231 98 tgl 15 0 empty empty 9 4 -6 1 12 -233017 -1 -1 0 1;
@@ -271,9 +270,9 @@ Arduino (previously known as Pduino firmware).;
#X obj 299 98 tgl 15 0 empty empty 13 0 -6 1 12 -233017 -1 -1 0 1;
#X obj 112 98 tgl 15 0 empty empty 2 4 -6 1 12 -233017 -1 -1 0 1;
#X obj 129 98 tgl 15 0 empty empty 3 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 146 98 tgl 15 0 empty empty 5 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 163 98 tgl 15 0 empty empty 6 4 -6 1 12 -233017 -1 -1 0 1;
-#X obj 180 98 tgl 15 0 empty empty 7 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 146 98 tgl 15 0 empty empty 4 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 163 98 tgl 15 0 empty empty 5 4 -6 1 12 -233017 -1 -1 0 1;
+#X obj 180 98 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;
@@ -451,17 +450,14 @@ Arduino (previously known as Pduino firmware).;
;
#N canvas 0 22 454 304 raw 0;
#X obj 96 231 outlet;
-#X obj 96 63 hsl 128 15 0 127 0 0 empty empty empty -2 -6 0 10 -262144
--1 -1 0 1;
-#X msg 90 139 171 \, \$1 \, 0;
-#X connect 1 0 2 0;
-#X connect 2 0 0 0;
+#X msg 96 127 240 \, 121 \, 247;
+#X connect 1 0 0 0;
#X restore 374 282 pd raw PWM;
#X text 2 494 (C) Copyright 2006 Free Software Foundation;
#N canvas 0 22 451 224 ver 0;
#X obj 23 7 inlet;
-#X obj 250 100 cnv 15 145 17 empty \$0-version_cnv empty 4 10 0 12
--203904 -1 0;
+#X obj 250 100 cnv 15 145 17 empty \$0-version_cnv firmata_version_1.0
+4 10 0 12 -203904 -1 0;
#X obj 23 157 send \$0-version_cnv;
#X msg 23 132 label \$1;
#X obj 23 52 zexy/makesymbol firmata_version_%s.%s;
@@ -469,6 +465,7 @@ Arduino (previously known as Pduino firmware).;
#X obj 38 77 loadbang;
#X msg 96 78 bang;
#X obj 23 29 route version;
+#X obj 309 163 outlet;
#X connect 0 0 8 0;
#X connect 3 0 2 0;
#X connect 4 0 3 0;
@@ -476,6 +473,7 @@ Arduino (previously known as Pduino firmware).;
#X connect 6 0 5 0;
#X connect 7 0 5 0;
#X connect 8 0 4 0;
+#X connect 8 1 9 0;
#X coords 0 -1 1 1 145 17 1 250 100;
#X restore 67 319 pd ver;
#X obj 456 399 unpack 0 0;
@@ -561,78 +559,106 @@ Arduino (previously known as Pduino firmware).;
0;
#X text 454 146 which analogIns to enable:;
#X obj 230 302 arduino 1;
-#X msg 359 198 devices;
-#X connect 4 0 100 0;
+#N canvas 649 518 412 212 firmware 0;
+#X obj 123 7 inlet;
+#X obj 250 100 cnv 15 145 17 empty \$0-firmware_cnv Standard_Firmata-2.0
+4 10 0 12 -232576 -66577 0;
+#X msg 123 152 label \$1;
+#X obj 148 123 symbol;
+#X obj 138 97 loadbang;
+#X msg 196 98 bang;
+#X obj 123 177 send \$0-firmware_cnv;
+#X obj 123 29 route firmware;
+#X obj 18 177 print Firmware;
+#X obj 123 54 list;
+#X obj 123 76 zexy/makesymbol %s-%s.%s;
+#X obj 18 147 list trim;
+#X connect 0 0 7 0;
+#X connect 2 0 6 0;
+#X connect 3 0 2 0;
+#X connect 4 0 3 0;
+#X connect 5 0 3 0;
+#X connect 7 0 9 0;
+#X connect 9 0 10 0;
+#X connect 10 0 2 0;
+#X connect 10 0 11 0;
+#X connect 11 0 8 0;
+#X coords 0 -1 1 1 145 17 1 250 100;
+#X restore 67 339 pd firmware;
+#X msg 358 215 devices;
+#X msg 358 195 firmware;
+#X connect 4 0 99 0;
#X connect 5 0 4 0;
#X connect 5 1 8 0;
-#X connect 8 0 100 0;
+#X connect 8 0 99 0;
#X connect 9 0 18 2;
#X connect 10 0 18 1;
-#X connect 11 0 42 1;
-#X connect 12 0 46 1;
+#X connect 11 0 41 1;
+#X connect 12 0 45 1;
#X connect 13 0 15 0;
-#X connect 15 0 100 0;
-#X connect 16 0 100 0;
+#X connect 15 0 99 0;
+#X connect 16 0 99 0;
#X connect 17 0 16 0;
-#X connect 26 0 42 1;
-#X connect 27 0 42 0;
-#X connect 42 0 43 0;
-#X connect 43 0 100 0;
-#X connect 44 0 100 0;
-#X connect 45 0 100 0;
-#X connect 46 0 67 0;
-#X connect 48 0 90 2;
-#X connect 49 0 90 3;
-#X connect 50 0 90 4;
-#X connect 51 0 90 5;
-#X connect 52 0 90 6;
-#X connect 53 0 90 7;
-#X connect 54 0 90 8;
-#X connect 55 0 90 9;
-#X connect 56 0 90 10;
-#X connect 57 0 90 11;
-#X connect 58 0 90 12;
-#X connect 59 0 90 13;
-#X connect 61 0 100 0;
-#X connect 62 0 100 0;
-#X connect 63 0 62 0;
+#X connect 26 0 41 0;
+#X connect 41 0 42 0;
+#X connect 42 0 99 0;
+#X connect 43 0 99 0;
+#X connect 44 0 99 0;
+#X connect 45 0 66 0;
+#X connect 47 0 89 2;
+#X connect 48 0 89 3;
+#X connect 49 0 89 4;
+#X connect 50 0 89 5;
+#X connect 51 0 89 6;
+#X connect 52 0 89 7;
+#X connect 53 0 89 8;
+#X connect 54 0 89 9;
+#X connect 55 0 89 10;
+#X connect 56 0 89 11;
+#X connect 57 0 89 12;
+#X connect 58 0 89 13;
+#X connect 60 0 99 0;
+#X connect 61 0 99 0;
+#X connect 62 0 61 0;
+#X connect 66 0 67 0;
+#X connect 66 1 69 0;
#X connect 67 0 68 0;
-#X connect 67 1 70 0;
-#X connect 68 0 69 0;
-#X connect 68 1 69 1;
-#X connect 68 2 69 2;
-#X connect 68 3 69 3;
-#X connect 68 4 69 4;
-#X connect 68 5 69 5;
-#X connect 68 6 69 6;
-#X connect 68 7 69 7;
-#X connect 69 0 19 0;
-#X connect 69 1 20 0;
-#X connect 69 2 21 0;
-#X connect 69 3 22 0;
-#X connect 69 4 23 0;
-#X connect 69 5 24 0;
-#X connect 69 6 65 0;
-#X connect 69 7 66 0;
-#X connect 70 0 71 0;
-#X connect 70 1 87 0;
-#X connect 71 2 72 0;
-#X connect 71 3 73 0;
-#X connect 71 4 74 0;
-#X connect 71 5 75 0;
-#X connect 71 6 76 0;
-#X connect 71 7 77 0;
-#X connect 71 8 78 0;
-#X connect 71 9 79 0;
-#X connect 71 10 80 0;
-#X connect 71 11 81 0;
-#X connect 71 12 82 0;
-#X connect 71 13 83 0;
-#X connect 84 0 100 1;
-#X connect 87 0 88 0;
-#X connect 87 1 89 0;
-#X connect 90 0 61 0;
-#X connect 100 0 46 0;
-#X connect 100 0 86 0;
-#X connect 100 1 18 0;
-#X connect 101 0 100 0;
+#X connect 67 1 68 1;
+#X connect 67 2 68 2;
+#X connect 67 3 68 3;
+#X connect 67 4 68 4;
+#X connect 67 5 68 5;
+#X connect 67 6 68 6;
+#X connect 67 7 68 7;
+#X connect 68 0 19 0;
+#X connect 68 1 20 0;
+#X connect 68 2 21 0;
+#X connect 68 3 22 0;
+#X connect 68 4 23 0;
+#X connect 68 5 24 0;
+#X connect 68 6 64 0;
+#X connect 68 7 65 0;
+#X connect 69 0 70 0;
+#X connect 69 1 86 0;
+#X connect 70 2 71 0;
+#X connect 70 3 72 0;
+#X connect 70 4 73 0;
+#X connect 70 5 74 0;
+#X connect 70 6 75 0;
+#X connect 70 7 76 0;
+#X connect 70 8 77 0;
+#X connect 70 9 78 0;
+#X connect 70 10 79 0;
+#X connect 70 11 80 0;
+#X connect 70 12 81 0;
+#X connect 70 13 82 0;
+#X connect 83 0 99 1;
+#X connect 85 0 100 0;
+#X connect 86 0 87 0;
+#X connect 86 1 88 0;
+#X connect 89 0 60 0;
+#X connect 99 0 45 0;
+#X connect 99 0 85 0;
+#X connect 99 1 18 0;
+#X connect 101 0 99 0;
+#X connect 102 0 99 0;