aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-09-03 22:19:29 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-09-03 22:19:29 +0000
commit61af8d50f09527f245666e719bce1dc908159380 (patch)
tree4c93f6129d20135a0101f7d8b8b7775bf85b7bbb /examples
parentab9192477d8ee6cf507f49af9c0432c9ac52457f (diff)
tweaked pwm messages
svn path=/trunk/externals/hardware/arduino/; revision=13965
Diffstat (limited to 'examples')
-rw-r--r--examples/LED-lighting-fade.pd66
1 files changed, 33 insertions, 33 deletions
diff --git a/examples/LED-lighting-fade.pd b/examples/LED-lighting-fade.pd
index 2476af7..46a2dcf 100644
--- a/examples/LED-lighting-fade.pd
+++ b/examples/LED-lighting-fade.pd
@@ -1,18 +1,16 @@
-#N canvas 104 22 702 588 12;
+#N canvas 97 22 702 588 12;
#X declare -lib mapping;
#X obj 357 466 arduino 2;
-#X msg 418 219 pinMode 5 3;
#X obj 41 310 hsl 128 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
--1 -1 1200 1;
+-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 700 1;
+-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 28 metro 100;
-#X obj 117 5 tgl 15 0 empty empty empty 17 7 0 10 -204786 -1 -1 0 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 - - -;
@@ -40,7 +38,6 @@ x 5 9 0 11 -232576 -1 -1 1300 0;
#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 msg 421 246 pinMode 6 3;
#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.;
@@ -48,33 +45,36 @@ Plug in the LEDs into pins 5 and 6 on your Arduino.;
#X obj 195 351 prepend pwm 6;
#X obj 40 463 pddp/print;
#X text 48 435 see the messages:;
-#X connect 1 0 0 0;
-#X connect 2 0 39 0;
-#X connect 2 0 3 0;
-#X connect 4 0 5 0;
-#X connect 4 0 40 0;
-#X connect 7 0 8 0;
-#X connect 7 0 11 0;
-#X connect 8 0 7 1;
-#X connect 9 0 7 0;
-#X connect 10 0 9 0;
+#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 13 0;
-#X connect 13 0 14 0;
-#X connect 13 0 20 0;
-#X connect 14 0 2 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 2 0;
-#X connect 16 0 4 0;
-#X connect 16 1 17 0;
-#X connect 17 0 4 0;
-#X connect 18 0 19 0;
-#X connect 18 0 20 1;
-#X connect 20 0 16 0;
-#X connect 22 0 0 0;
-#X connect 23 0 0 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 39 0 0 0;
-#X connect 39 0 41 0;
-#X connect 40 0 6 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;