aboutsummaryrefslogtreecommitdiff
path: root/examples/LED-lighting-fade.pd
blob: 46a2dcfd8c5763ae59356d4598b50488979efca2 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#N canvas 97 22 702 588 12;
#X declare -lib mapping;
#X obj 357 466 arduino 2;
#X obj 41 310 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 10510 1;
#X floatatom 49 346 5 0 0 0 - - -;
#X obj 197 302 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 6223 1;
#X floatatom 201 322 5 0 0 0 - - -;
#X obj 195 463 pddp/print;
#X obj 118 56 float;
#X obj 177 57 + 1;
#X obj 117 5 tgl 15 0 empty empty empty 17 7 0 10 -204786 -1 -1 1 1
;
#X obj 118 91 % 30;
#X floatatom 131 121 5 0 0 0 - - -;
#X obj 118 146 autoscale;
#X obj 38 230 disjoin;
#X obj 84 257 reverse;
#X obj 194 230 disjoin;
#X obj 240 255 reverse;
#X obj 310 151 hsl 50 15 0 1 0 1 \$0-x-slider \$0-x-slider-receive
x 5 9 0 11 -232576 -1 -1 1300 0;
#X floatatom 327 171 7 0 0 0 - - -;
#X obj 194 201 exponential_sigmoid;
#X obj 498 -42 import mapping;
#X msg 424 42 devices;
#X msg 429 83 open 4;
#X text 483 41 1) click this message to get;
#X text 485 58 the number of your arduino;
#X text 483 83 2) put your arduino # here;
#X text 484 103 and click this message;
#X text 438 135 3) wait for a few seconds for your;
#X text 438 153 arduino to reboot \, then click both;
#X text 438 171 of the messages below to configure;
#X text 438 190 your arduino;
#X text 515 217 (set pin 5 to PWM mode);
#X text 138 2 4) click this to start the LEDs-a-pulsing;
#X text 225 128 of the pulsing;
#X text 225 114 5) adjust the curve;
#X text 515 247 (set pin 6 to PWM mode);
#X text 28 -52 This example patch requires an Arduino and two LEDs.
Plug in the LEDs into pins 5 and 6 on your Arduino.;
#X msg 40 372 pwm 5 \$1;
#X obj 195 351 prepend pwm 6;
#X obj 40 463 pddp/print;
#X text 48 435 see the messages:;
#X msg 417 246 pinMode 6 pwm;
#X msg 414 219 pinMode 5 pwm;
#X obj 117 28 metro 100;
#X connect 1 0 36 0;
#X connect 1 0 2 0;
#X connect 3 0 4 0;
#X connect 3 0 37 0;
#X connect 6 0 7 0;
#X connect 6 0 9 0;
#X connect 7 0 6 1;
#X connect 8 0 42 0;
#X connect 9 0 10 0;
#X connect 9 0 11 0;
#X connect 11 0 12 0;
#X connect 11 0 18 0;
#X connect 12 0 1 0;
#X connect 12 1 13 0;
#X connect 13 0 1 0;
#X connect 14 0 3 0;
#X connect 14 1 15 0;
#X connect 15 0 3 0;
#X connect 16 0 17 0;
#X connect 16 0 18 1;
#X connect 18 0 14 0;
#X connect 20 0 0 0;
#X connect 21 0 0 0;
#X connect 36 0 0 0;
#X connect 36 0 38 0;
#X connect 37 0 5 0;
#X connect 37 0 0 0;
#X connect 40 0 0 0;
#X connect 41 0 0 0;
#X connect 42 0 6 0;