aboutsummaryrefslogtreecommitdiff
path: root/examples/PD_send_potentiometer.pd
blob: 765019d13777dd9c1e641050e8581db30d252361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#N canvas 625 217 510 370 10;
#X text 151 136 On Mac OS X \, set this to the right value:;
#X obj 101 196 comport 1 9600;
#X text 28 25 You might need to select another port \, check the Pd
window to see if it connected successfully:;
#X msg 161 101 close;
#X msg 155 153 devicename /dev/tty.usbserial-191;
#X obj 100 229 nbx 6 16 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 14
-3754 -1 -1 10 256;
#X msg 101 100 open \$1;
#X text 28 -6 This patch works with the example Arduino firmware of
the same name.;
#X text 34 266 CAUTION! Watch out if you connect your potentiometer
without an extra resistor \, when you turn it all the way up \, the
full voltage and current will go to the input. This could kill your
board!;
#X text 247 338 released under the GNU GPL;
#X text 33 323 (C) Copyright 2006 Hans-Christoph Steiner <hans@at.or.at>
;
#N canvas 162 133 562 412 serin 0;
#X obj 220 101 cnv 13 14 13 empty \$0-number-canvas 0 4 7 0 14 -233017
-1 0;
#X obj 241 251 s \$0-number-canvas;
#X obj 100 100 hradio 15 1 0 8 empty empty empty 0 -6 0 8 -225271 -1
-1 0;
#X obj 100 173 outlet;
#X obj 101 39 inlet;
#X msg 241 228 label \$1;
#X obj 241 206 makefilename %d;
#X obj 101 134 float;
#X connect 2 0 7 0;
#X connect 4 0 2 0;
#X connect 5 0 1 0;
#X connect 6 0 5 0;
#X connect 7 0 3 0;
#X connect 7 0 6 0;
#X coords 0 -1 1 1 136 15 1 100 100;
#X restore 101 78 pd serin;
#X text 241 79 serial port #;
#X connect 1 0 5 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 6 0 1 0;
#X connect 11 0 6 0;