Update of /cvsroot/pure-data/externals/hardware/arduino In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26284
Modified Files: arduino-help.pd arduino.pd Log Message: minor cleanups and commenting on the firmware; got Pd code working with new protocol; digital inputs still aren't transmitted/received correctly
Index: arduino.pd =================================================================== RCS file: /cvsroot/pure-data/externals/hardware/arduino/arduino.pd,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** arduino.pd 24 Aug 2006 05:54:25 -0000 1.9 --- arduino.pd 24 Aug 2006 14:48:21 -0000 1.10 *************** *** 1,3 **** ! #N canvas 158 31 628 508 10; #X text 414 457 released under the GNU GPL; #X text 9 457 (C) Copyright 2006 Hans-Christoph Steiner hans@at.or.at --- 1,4 ---- ! #N canvas 158 31 627 495 10; ! #X obj 504 -5 import flatspace; #X text 414 457 released under the GNU GPL; #X text 9 457 (C) Copyright 2006 Hans-Christoph Steiner hans@at.or.at *************** *** 60,64 **** #X obj 494 241 outlet; #X obj 11 66 comport $1 9600; ! #N canvas 495 157 582 327 command 0; #X obj 79 8 inlet; #X obj 198 269 outlet; --- 61,65 ---- #X obj 494 241 outlet; #X obj 11 66 comport $1 9600; ! #N canvas 240 171 586 331 command 0; #X obj 79 8 inlet; #X obj 198 269 outlet; *************** *** 75,79 **** #X obj 263 94 clip 0 1; #X obj 263 115 int; ! #N canvas 0 22 462 312 digital-out 0; #X obj 67 20 inlet; #X obj 85 280 outlet; --- 76,80 ---- #X obj 263 94 clip 0 1; #X obj 263 115 int; ! #N canvas 0 22 466 316 digital-out 0; #X obj 67 20 inlet; #X obj 85 280 outlet; *************** *** 152,180 **** #X text 382 -10 raw input; #X text 48 -11 processed input; ! #X connect 2 0 4 0; ! #X connect 2 1 9 0; ! #X connect 3 0 2 0; ! #X connect 3 0 7 0; ! #X connect 4 0 5 0; ! #X connect 5 0 18 0; ! #X connect 5 1 6 1; ! #X connect 6 0 20 0; ! #X connect 7 0 18 1; ! #X connect 8 0 3 0; ! #X connect 8 1 15 0; ! #X connect 9 0 4 1; ! #X connect 10 0 14 0; ! #X connect 13 0 8 0; ! #X connect 13 0 12 0; #X connect 14 0 13 0; ! #X connect 15 0 2 0; ! #X connect 16 0 6 0; ! #X connect 17 0 6 0; ! #X connect 18 0 19 0; ! #X connect 18 0 21 0; ! #X connect 19 0 18 1; ! #X connect 20 0 11 0; ! #X connect 21 0 16 0; ! #X connect 21 1 23 0; ! #X connect 23 0 17 0; ! #X connect 24 0 13 0; --- 153,181 ---- #X text 382 -10 raw input; #X text 48 -11 processed input; ! #X connect 3 0 5 0; ! #X connect 3 1 10 0; ! #X connect 4 0 3 0; ! #X connect 4 0 8 0; ! #X connect 5 0 6 0; ! #X connect 6 0 19 0; ! #X connect 6 1 7 1; ! #X connect 7 0 21 0; ! #X connect 8 0 19 1; ! #X connect 9 0 4 0; ! #X connect 9 1 16 0; ! #X connect 10 0 5 1; ! #X connect 11 0 15 0; ! #X connect 14 0 9 0; #X connect 14 0 13 0; ! #X connect 15 0 14 0; ! #X connect 16 0 3 0; ! #X connect 17 0 7 0; ! #X connect 18 0 7 0; ! #X connect 19 0 20 0; ! #X connect 19 0 22 0; ! #X connect 20 0 19 1; ! #X connect 21 0 12 0; ! #X connect 22 0 17 0; ! #X connect 22 1 24 0; ! #X connect 24 0 18 0; ! #X connect 25 0 14 0;
Index: arduino-help.pd =================================================================== RCS file: /cvsroot/pure-data/externals/hardware/arduino/arduino-help.pd,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** arduino-help.pd 24 Aug 2006 05:54:25 -0000 1.9 --- arduino-help.pd 24 Aug 2006 14:48:21 -0000 1.10 *************** *** 1,3 **** ! #N canvas 525 22 658 550 10; #X msg 156 146 open $1; #N canvas 162 133 534 384 serin 0; --- 1,3 ---- ! #N canvas 157 22 662 554 10; #X msg 156 146 open $1; #N canvas 162 133 534 384 serin 0; *************** *** 29,38 **** 0 1; #X obj 278 29 hradio 15 1 0 14 empty empty empty 0 -6 0 8 -262131 -1 ! -1 11; #X obj 255 30 tgl 15 0 empty empty empty 0 -6 0 8 -262131 -1 -1 0 1 ; #X obj 355 292 tgl 15 0 empty empty all 0 -6 0 8 -262144 -1 -1 0 1 ; ! #N canvas 100 289 630 349 decode 0; #X obj 241 26 inlet; #X obj 46 189 & 1; --- 29,38 ---- 0 1; #X obj 278 29 hradio 15 1 0 14 empty empty empty 0 -6 0 8 -262131 -1 ! -1 9; #X obj 255 30 tgl 15 0 empty empty empty 0 -6 0 8 -262131 -1 -1 0 1 ; #X obj 355 292 tgl 15 0 empty empty all 0 -6 0 8 -262144 -1 -1 0 1 ; ! #N canvas 196 579 634 353 decode 0; #X obj 241 26 inlet; #X obj 46 189 & 1; *************** *** 40,44 **** #X obj 98 189 & 4; #X obj 46 213 tgl 15 0 empty empty 0 4 25 1 12 -262144 -1 -1 0 1; ! #X obj 72 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 2 ; #X obj 98 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 4 --- 40,44 ---- #X obj 98 189 & 4; #X obj 46 213 tgl 15 0 empty empty 0 4 25 1 12 -262144 -1 -1 0 1; ! #X obj 72 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 2 2 ; #X obj 98 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 4 *************** *** 46,50 **** #X obj 124 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 8; ! #X obj 150 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 16; #X obj 182 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 --- 46,50 ---- #X obj 124 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 8; ! #X obj 150 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 16 16; #X obj 182 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 *************** *** 52,56 **** #X obj 215 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 64; ! #X obj 248 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 128; #X obj 287 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 --- 52,56 ---- #X obj 215 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 64; ! #X obj 248 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 128 128; #X obj 287 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 *************** *** 62,66 **** #X obj 409 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 2048; ! #X obj 453 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 4096; #X obj 499 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 --- 62,66 ---- #X obj 409 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 2048; ! #X obj 453 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 4096 4096; #X obj 499 213 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 *************** *** 118,127 **** #X msg 129 44 PWM1; #X msg 94 44 PWM0; ! #X obj 67 215 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 16383 ! ; #X obj 67 178 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 21 336 spigot 0; ! #X obj 64 307 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 21 358 route analog0 analog1 analog2 analog3 analog4 analog5 --- 118,127 ---- #X msg 129 44 PWM1; #X msg 94 44 PWM0; ! #X obj 67 215 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 16383 ! 16383; #X obj 67 178 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 21 336 spigot 0; ! #X obj 64 307 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1 ; #X obj 21 358 route analog0 analog1 analog2 analog3 analog4 analog5 *************** *** 131,135 **** #X floatatom 430 488 6 0 0 0 - - -; #X text 393 56 how many analogIns to enable:; ! #X obj 405 117 tgl 15 0 empty empty empty 0 -6 0 8 -257472 -1 -1 0 1; #X text 428 116 enable/disable digitalIns; --- 131,135 ---- #X floatatom 430 488 6 0 0 0 - - -; #X text 393 56 how many analogIns to enable:; ! #X obj 405 117 tgl 15 1 empty empty empty 0 -6 0 8 -257472 -1 -1 1 1; #X text 428 116 enable/disable digitalIns; *************** *** 161,165 **** 1; #X obj 367 483 print; - #X msg 381 225 231 , 20 , 226 , 213; #X text 5 229 this will flash any pin set to output; #N canvas 0 22 261 248 speed 0; --- 161,164 ---- *************** *** 246,250 **** #X text 327 15 3; #X msg 255 71 outputMode $2 $1; ! #N canvas 485 91 566 347 sending 0; #X obj 142 285 outlet; #X obj 129 84 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 --- 245,249 ---- #X text 327 15 3; #X msg 255 71 outputMode $2 $1; ! #N canvas 485 91 574 355 sending 0; #X obj 142 285 outlet; #X obj 129 84 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 *************** *** 307,335 **** #X restore 10 258 pd sending digital outs; #X obj 255 274 arduino 3; ! #X connect 0 0 62 0; #X connect 1 0 0 0; ! #X connect 5 0 62 0; ! #X connect 7 0 44 2; ! #X connect 8 0 54 1; ! #X connect 9 0 54 0; ! #X connect 10 0 44 1; #X connect 12 0 18 0; #X connect 13 0 6 0; ! #X connect 17 0 62 0; #X connect 18 0 17 0; ! #X connect 19 0 52 0; ! #X connect 20 0 52 0; ! #X connect 21 0 52 0; ! #X connect 22 0 62 0; ! #X connect 23 0 53 0; #X connect 24 0 26 0; #X connect 25 0 24 1; ! #X connect 26 0 43 0; ! #X connect 26 1 43 1; ! #X connect 26 2 43 2; ! #X connect 26 3 43 3; ! #X connect 26 4 43 4; ! #X connect 26 5 43 5; ! #X connect 26 6 43 6; #X connect 27 0 11 0; #X connect 27 0 29 0; --- 306,335 ---- #X restore 10 258 pd sending digital outs; #X obj 255 274 arduino 3; ! #X msg 381 225 251 , 9 , 20 , 142 , 213; ! #X connect 0 0 61 0; #X connect 1 0 0 0; ! #X connect 5 0 61 0; ! #X connect 7 0 43 2; ! #X connect 8 0 53 1; ! #X connect 9 0 53 0; ! #X connect 10 0 43 1; #X connect 12 0 18 0; #X connect 13 0 6 0; ! #X connect 17 0 61 0; #X connect 18 0 17 0; ! #X connect 19 0 51 0; ! #X connect 20 0 51 0; ! #X connect 21 0 51 0; ! #X connect 22 0 61 0; ! #X connect 23 0 52 0; #X connect 24 0 26 0; #X connect 25 0 24 1; ! #X connect 26 0 42 0; ! #X connect 26 1 42 1; ! #X connect 26 2 42 2; ! #X connect 26 3 42 3; ! #X connect 26 4 42 4; ! #X connect 26 5 42 5; ! #X connect 26 6 42 6; #X connect 27 0 11 0; #X connect 27 0 29 0; *************** *** 337,358 **** #X connect 27 1 28 0; #X connect 31 0 33 0; ! #X connect 33 0 62 0; ! #X connect 34 0 62 0; #X connect 35 0 34 0; #X connect 38 0 40 0; #X connect 39 0 38 1; ! #X connect 41 0 62 1; ! #X connect 43 0 46 0; ! #X connect 43 1 47 0; ! #X connect 43 2 48 0; ! #X connect 43 3 49 0; ! #X connect 43 4 50 0; ! #X connect 43 5 51 0; ! #X connect 43 6 27 0; ! #X connect 52 0 18 1; ! #X connect 53 0 22 0; ! #X connect 54 0 60 0; ! #X connect 60 0 62 0; ! #X connect 61 0 62 0; ! #X connect 62 0 24 0; ! #X connect 62 1 44 0; --- 337,358 ---- #X connect 27 1 28 0; #X connect 31 0 33 0; ! #X connect 33 0 61 0; ! #X connect 34 0 61 0; #X connect 35 0 34 0; #X connect 38 0 40 0; #X connect 39 0 38 1; ! #X connect 42 0 45 0; ! #X connect 42 1 46 0; ! #X connect 42 2 47 0; ! #X connect 42 3 48 0; ! #X connect 42 4 49 0; ! #X connect 42 5 50 0; ! #X connect 42 6 27 0; ! #X connect 51 0 18 1; ! #X connect 52 0 22 0; ! #X connect 53 0 59 0; ! #X connect 59 0 61 0; ! #X connect 60 0 61 0; ! #X connect 61 0 24 0; ! #X connect 61 1 43 0; ! #X connect 62 0 61 1;