diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-11-25 05:56:16 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-11-25 05:56:16 +0000 |
commit | c6be69970a25abc8a22c350e9486455aaec086eb (patch) | |
tree | 066d1dc299234ffe0722546ac4f27df14a92cac0 /arduino-test.pd | |
parent | 6e9247a0756a52691b254ba811d80f37e36c8303 (diff) |
- added a "port" message for sending a complete port at a time, directly
reflecting the underlying digital message and the fact that digital outputs
on a microcrontroller are handled on an 8-bit port basis.
svn path=/trunk/externals/hardware/arduino/; revision=10379
Diffstat (limited to 'arduino-test.pd')
-rw-r--r-- | arduino-test.pd | 37 |
1 files changed, 32 insertions, 5 deletions
diff --git a/arduino-test.pd b/arduino-test.pd index 5c67900..e4a38c3 100644 --- a/arduino-test.pd +++ b/arduino-test.pd @@ -131,7 +131,7 @@ #X floatatom 252 426 5 0 0 3 a5 - -; #X text 290 271 <- argument sets port #; #X obj 40 71 hradio 15 1 0 14 empty empty empty 0 -6 0 8 -176124 -1 --1 6; +-1 0; #X text 148 57 7; #X text 42 57 0; #X text 189 57 10; @@ -187,7 +187,7 @@ #X connect 16 0 17 0; #X connect 17 0 14 0; #X restore 41 125 pd pwm; -#X msg 41 147 pwm 6 0; +#X msg 41 147 pwm 0 0; #X msg 319 155 info; #X msg 358 155 version; #X obj 220 302 spigot; @@ -216,11 +216,11 @@ #X obj 550 77 tgl 15 1 empty ARDUINO_PINMODE_RESET 13 0 -6 1 12 -260818 -1 -1 1 1; #X text 328 44 turn on output mode for each pin (off=input); -#X msg 329 118 pinMode 2 1; -#N canvas 69 607 475 352 sending 0; +#X msg 329 118 pinMode 13 1; +#N canvas 108 55 475 478 sending 0; #X obj 69 208 cnv 15 100 22 empty empty empty 20 12 0 14 -253938 -66577 0; -#X obj 78 264 outlet; +#X obj 78 434 outlet; #X msg 78 211 digital 2 0; #X obj 197 148 tgl 15 0 empty empty 7 4 -6 1 12 -233017 -1 -1 0 1; #X obj 214 148 tgl 15 0 empty empty 8 4 -6 1 12 -233017 -1 -1 0 1; @@ -319,6 +319,20 @@ #X obj 261 43 trigger 0 float; #X obj 261 64 select 0; #X msg 261 84 0; +#X msg 405 389 port 1 0; +#X msg 263 389 port 0 0; +#X msg 189 389 port 0 255; +#X msg 331 389 port 1 255; +#X text 95 291 or send 8-bit ports in one message:; +#X msg 159 338 port 1 \$1; +#X msg 91 338 port 0 \$1; +#X msg 230 338 port 2 \$1; +#X obj 362 297 tgl 25 0 empty ARDUINO_TEST_RESET ALL 2 12 0 12 -262144 +-1 -1 255 255; +#X obj 362 246 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 +16383; +#X obj 362 266 metro 100; +#X floatatom 362 329 5 0 0 0 - - -; #X connect 2 0 1 0; #X connect 3 0 15 7; #X connect 4 0 15 8; @@ -352,6 +366,19 @@ #X connect 24 1 17 0; #X connect 25 0 26 0; #X connect 26 0 16 0; +#X connect 27 0 1 0; +#X connect 28 0 1 0; +#X connect 29 0 1 0; +#X connect 30 0 1 0; +#X connect 32 0 1 0; +#X connect 33 0 1 0; +#X connect 34 0 1 0; +#X connect 35 0 38 0; +#X connect 35 0 34 0; +#X connect 35 0 32 0; +#X connect 35 0 33 0; +#X connect 36 0 37 0; +#X connect 37 0 35 0; #X restore 14 244 pd sending digital outs; #X obj 14 225 tgl 15 0 empty empty empty 0 -6 0 8 -225271 -1 -1 0 16383 ; |