1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
max v2;
|
|
#N vpatcher 68 52 880 709;
|
|
#P origin 0 -4;
|
|
#P window setfont "Sans Serif" 9.;
|
|
#P comment 380 473 165 196617 output [port] [value];
|
|
#P comment 576 440 165 196617 you send for PORTC.;
|
|
#P comment 576 427 172 196617 The gnusb will just echo the value;
|
|
#P comment 576 414 176 196617 as an output.;
|
|
#P comment 576 401 151 196617 By default \, PORTC is configured;
|
|
#P comment 25 457 203 196617 gnusb outputs only if the value has changed;
|
|
#P comment 377 440 165 196617 will show high;
|
|
#P comment 128 543 189 196617 Output values from 0 to 255 (default);
|
|
#P comment 128 528 151 196617 Output values from 0 to 1023;
|
|
#P message 27 540 72 196617 precision 8bit;
|
|
#P comment 377 427 172 196617 turned on \, so unconnected pins;
|
|
#P comment 377 414 176 196617 as an input with pull-up resistors;
|
|
#P comment 377 401 151 196617 By default \, PORTB is configured;
|
|
#P message 27 526 78 196617 precision 10bit;
|
|
#P hidden message 340 134 164 196617 frgb 20 20 20 \, brgb 230 230 200;
|
|
#P message 688 259 40 196617 input c;
|
|
#B color 5;
|
|
#P message 489 258 40 196617 input b;
|
|
#B color 5;
|
|
#P window setfont "Sans Serif" 12.;
|
|
#P comment 31 106 133 196620 Controlling the clock;
|
|
#P toggle 713 367 15 0;
|
|
#P toggle 694 367 15 0;
|
|
#P toggle 675 367 15 0;
|
|
#P toggle 656 367 15 0;
|
|
#P toggle 637 367 15 0;
|
|
#P toggle 618 367 15 0;
|
|
#P toggle 599 367 15 0;
|
|
#P toggle 580 367 15 0;
|
|
#P toggle 514 367 15 0;
|
|
#P toggle 495 367 15 0;
|
|
#P toggle 476 367 15 0;
|
|
#P toggle 457 367 15 0;
|
|
#P toggle 438 367 15 0;
|
|
#P toggle 419 367 15 0;
|
|
#P toggle 400 367 15 0;
|
|
#P toggle 381 367 15 0;
|
|
#P window setfont "Sans Serif" 9.;
|
|
#N vpatcher 14 59 355 467;
|
|
#P outlet 217 332 15 0;
|
|
#P outlet 198 332 15 0;
|
|
#P outlet 179 332 15 0;
|
|
#P outlet 160 332 15 0;
|
|
#P outlet 141 332 15 0;
|
|
#P outlet 122 332 15 0;
|
|
#P outlet 103 332 15 0;
|
|
#P outlet 84 332 15 0;
|
|
#P window setfont "Sans Serif" 9.;
|
|
#P newex 84 294 146 196617 unpack 0 0 0 0 0 0 0 0;
|
|
#P window linecount 1;
|
|
#P newex 84 90 27 196617 t b i;
|
|
#P window linecount 0;
|
|
#P newex 84 265 37 196617 zl rev;
|
|
#P newex 84 124 40 196617 uzi 8;
|
|
#P newex 84 169 27 196617 i;
|
|
#P newex 52 213 27 196617 / 2;
|
|
#P newex 84 212 27 196617 % 2;
|
|
#P newex 84 242 55 196617 zl group 8;
|
|
#P inlet 84 41 15 0;
|
|
#P fasten 4 0 3 0 89 195 57 195;
|
|
#P connect 0 0 7 0;
|
|
#P connect 7 0 5 0;
|
|
#P connect 5 0 4 0;
|
|
#P connect 4 0 2 0;
|
|
#P connect 2 0 1 0;
|
|
#P connect 1 0 6 0;
|
|
#P connect 6 0 8 0;
|
|
#P connect 8 0 9 0;
|
|
#P fasten 7 1 4 1 106 114 133 114 133 157 106 157;
|
|
#P fasten 3 0 4 1 57 237 37 237 37 157 106 157;
|
|
#P connect 8 1 10 0;
|
|
#P connect 8 2 11 0;
|
|
#P connect 8 3 12 0;
|
|
#P connect 8 4 13 0;
|
|
#P connect 8 5 14 0;
|
|
#P connect 8 6 15 0;
|
|
#P connect 8 7 16 0;
|
|
#P pop;
|
|
#P newobj 580 343 148 196617 p;
|
|
#N vpatcher 14 59 355 467;
|
|
#P outlet 217 332 15 0;
|
|
#P outlet 198 332 15 0;
|
|
#P outlet 179 332 15 0;
|
|
#P outlet 160 332 15 0;
|
|
#P outlet 141 332 15 0;
|
|
#P outlet 122 332 15 0;
|
|
#P outlet 103 332 15 0;
|
|
#P outlet 84 332 15 0;
|
|
#P window setfont "Sans Serif" 9.;
|
|
#P newex 84 294 146 196617 unpack 0 0 0 0 0 0 0 0;
|
|
#P window linecount 1;
|
|
#P newex 84 90 27 196617 t b i;
|
|
#P window linecount 0;
|
|
#P newex 84 265 37 196617 zl rev;
|
|
#P newex 84 124 40 196617 uzi 8;
|
|
#P newex 84 169 27 196617 i;
|
|
#P newex 52 213 27 196617 / 2;
|
|
#P newex 84 212 27 196617 % 2;
|
|
#P newex 84 242 55 196617 zl group 8;
|
|
#P inlet 84 41 15 0;
|
|
#P fasten 4 0 3 0 89 195 57 195;
|
|
#P connect 0 0 7 0;
|
|
#P connect 7 0 5 0;
|
|
#P connect 5 0 4 0;
|
|
#P connect 4 0 2 0;
|
|
#P connect 2 0 1 0;
|
|
#P connect 1 0 6 0;
|
|
#P connect 6 0 8 0;
|
|
#P connect 8 0 9 0;
|
|
#P fasten 3 0 4 1 57 237 37 237 37 157 106 157;
|
|
#P fasten 7 1 4 1 106 114 133 114 133 157 106 157;
|
|
#P connect 8 1 10 0;
|
|
#P connect 8 2 11 0;
|
|
#P connect 8 3 12 0;
|
|
#P connect 8 4 13 0;
|
|
#P connect 8 5 14 0;
|
|
#P connect 8 6 15 0;
|
|
#P connect 8 7 16 0;
|
|
#P pop;
|
|
#P newobj 381 342 148 196617 p;
|
|
#P toggle 713 210 15 0;
|
|
#P toggle 694 210 15 0;
|
|
#P toggle 675 210 15 0;
|
|
#P toggle 656 210 15 0;
|
|
#P toggle 637 210 15 0;
|
|
#P toggle 618 210 15 0;
|
|
#P toggle 599 210 15 0;
|
|
#P toggle 580 210 15 0;
|
|
#N vpatcher 14 59 614 459;
|
|
#P outlet 69 336 15 0;
|
|
#P window setfont "Sans Serif" 9.;
|
|
#P window linecount 1;
|
|
#P newex 111 200 27 196617 t i b;
|
|
#P window linecount 0;
|
|
#P newex 69 305 27 196617 i;
|
|
#P window linecount 1;
|
|
#P newex 111 265 27 196617 * 2;
|
|
#P newex 111 241 27 196617 +;
|
|
#P newex 111 149 44 196617 t b l 0;
|
|
#P window linecount 0;
|
|
#P newex 111 180 25 196617 iter;
|
|
#P newex 127 220 28 196617 i;
|
|
#P window linecount 1;
|
|
#P newex 545 67 27 196617 > 0;
|
|
#P newex 483 67 27 196617 > 0;
|
|
#P newex 421 67 27 196617 > 0;
|
|
#P newex 359 67 27 196617 > 0;
|
|
#P newex 297 67 27 196617 > 0;
|
|
#P newex 235 67 27 196617 > 0;
|
|
#P newex 173 67 27 196617 > 0;
|
|
#P window linecount 0;
|
|
#P newex 111 67 27 196617 > 0;
|
|
#P newex 111 100 450 196617 pak 0 0 0 0 0 0 0 0;
|
|
#P inlet 545 39 15 0;
|
|
#P inlet 483 39 15 0;
|
|
#P inlet 421 39 15 0;
|
|
#P inlet 359 39 15 0;
|
|
#P inlet 297 39 15 0;
|
|
#P inlet 235 39 15 0;
|
|
#P inlet 173 39 15 0;
|
|
#P inlet 111 39 15 0;
|
|
#P fasten 19 0 22 0 116 169 74 169;
|
|
#P connect 22 0 24 0;
|
|
#P fasten 20 0 22 1 116 260 91 260;
|
|
#P connect 0 0 9 0;
|
|
#P connect 9 0 8 0;
|
|
#P connect 8 0 19 0;
|
|
#P fasten 19 1 18 0 133 173 116 173;
|
|
#P connect 18 0 23 0;
|
|
#P connect 23 0 20 0;
|
|
#P connect 20 0 21 0;
|
|
#P connect 23 1 17 0;
|
|
#P connect 17 0 20 1;
|
|
#P connect 19 2 17 1;
|
|
#P fasten 21 0 17 1 116 289 167 289 167 211 150 211;
|
|
#P connect 1 0 10 0;
|
|
#P connect 10 0 8 1;
|
|
#P connect 2 0 11 0;
|
|
#P connect 11 0 8 2;
|
|
#P connect 3 0 12 0;
|
|
#P connect 12 0 8 3;
|
|
#P connect 4 0 13 0;
|
|
#P connect 13 0 8 4;
|
|
#P connect 5 0 14 0;
|
|
#P connect 14 0 8 5;
|
|
#P connect 6 0 15 0;
|
|
#P connect 15 0 8 6;
|
|
#P connect 7 0 16 0;
|
|
#P connect 16 0 8 7;
|
|
#P pop;
|
|
#P newobj 580 236 148 196617 p;
|
|
#P number 381 258 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
|
|
#P toggle 514 210 15 0;
|
|
#P toggle 495 210 15 0;
|
|
#P toggle 476 210 15 0;
|
|
#P toggle 457 210 15 0;
|
|
#P toggle 438 210 15 0;
|
|
#P toggle 419 210 15 0;
|
|
#P toggle 400 210 15 0;
|
|
#P toggle 381 210 15 0;
|
|
#N vpatcher 14 59 614 459;
|
|
#P outlet 69 336 15 0;
|
|
#P window setfont "Sans Serif" 9.;
|
|
#P window linecount 1;
|
|
#P newex 111 200 27 196617 t i b;
|
|
#P window linecount 0;
|
|
#P newex 69 305 27 196617 i;
|
|
#P window linecount 1;
|
|
#P newex 111 265 27 196617 * 2;
|
|
#P newex 111 241 27 196617 +;
|
|
#P newex 111 149 44 196617 t b l 0;
|
|
#P window linecount 0;
|
|
#P newex 111 180 25 196617 iter;
|
|
#P newex 127 220 28 196617 i;
|
|
#P window linecount 1;
|
|
#P newex 545 67 27 196617 > 0;
|
|
#P newex 483 67 27 196617 > 0;
|
|
#P newex 421 67 27 196617 > 0;
|
|
#P newex 359 67 27 196617 > 0;
|
|
#P newex 297 67 27 196617 > 0;
|
|
#P newex 235 67 27 196617 > 0;
|
|
#P newex 173 67 27 196617 > 0;
|
|
#P window linecount 0;
|
|
#P newex 111 67 27 196617 > 0;
|
|
#P newex 111 100 450 196617 pak 0 0 0 0 0 0 0 0;
|
|
#P inlet 545 39 15 0;
|
|
#P inlet 483 39 15 0;
|
|
#P inlet 421 39 15 0;
|
|
#P inlet 359 39 15 0;
|
|
#P inlet 297 39 15 0;
|
|
#P inlet 235 39 15 0;
|
|
#P inlet 173 39 15 0;
|
|
#P inlet 111 39 15 0;
|
|
#P fasten 19 0 22 0 116 169 74 169;
|
|
#P connect 22 0 24 0;
|
|
#P fasten 20 0 22 1 116 260 91 260;
|
|
#P connect 0 0 9 0;
|
|
#P connect 9 0 8 0;
|
|
#P connect 8 0 19 0;
|
|
#P fasten 19 1 18 0 133 173 116 173;
|
|
#P connect 18 0 23 0;
|
|
#P connect 23 0 20 0;
|
|
#P connect 20 0 21 0;
|
|
#P connect 23 1 17 0;
|
|
#P connect 17 0 20 1;
|
|
#P fasten 21 0 17 1 116 289 167 289 167 211 150 211;
|
|
#P connect 19 2 17 1;
|
|
#P connect 1 0 10 0;
|
|
#P connect 10 0 8 1;
|
|
#P connect 2 0 11 0;
|
|
#P connect 11 0 8 2;
|
|
#P connect 3 0 12 0;
|
|
#P connect 12 0 8 3;
|
|
#P connect 4 0 13 0;
|
|
#P connect 13 0 8 4;
|
|
#P connect 5 0 14 0;
|
|
#P connect 14 0 8 5;
|
|
#P connect 6 0 15 0;
|
|
#P connect 15 0 8 6;
|
|
#P connect 7 0 16 0;
|
|
#P connect 16 0 8 7;
|
|
#P pop;
|
|
#P newobj 381 236 144 196617 p;
|
|
#P number 580 258 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
|
|
#P message 618 258 61 196617 output c \$1;
|
|
#P message 419 258 61 196617 output b \$1;
|
|
#P window setfont "Sans Serif" 12.;
|
|
#P comment 376 571 227 196620 Ports B & C: Digital inputs/outputs;
|
|
#P window setfont "Sans Serif" 9.;
|
|
#P number 580 322 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
|
|
#P number 381 322 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
|
|
#P comment 127 496 169 196617 Smoothing of analog input values;
|
|
#P number 27 495 35 9 0 15 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
|
|
#P message 65 495 57 196617 smooth \$1;
|
|
#P comment 137 132 123 196617 Bang polls the gnusb once;
|
|
#P comment 137 160 136 196617 Start/stop polling the gnusb;
|
|
#P message 89 190 41 196617 poll 10;
|
|
#P message 37 204 35 196617 poll 0;
|
|
#P message 37 190 53 196617 poll 1000;
|
|
#P toggle 37 157 15 0;
|
|
#P comment 21 62 292 196617 See: http://www.anyma.ch/gnusb;
|
|
#P window setfont "Sans Serif" 18.;
|
|
#P comment 21 24 141 196626 gnusb;
|
|
#B frgb 21 56 9;
|
|
#P window setfont "Sans Serif" 9.;
|
|
#P comment 21 50 292 196617 Interface to the open source usb sensor box;
|
|
#P button 175 437 15 0;
|
|
#P button 154 437 15 0;
|
|
#P button 133 437 15 0;
|
|
#P button 112 437 15 0;
|
|
#P button 91 437 15 0;
|
|
#P button 70 437 15 0;
|
|
#P button 49 437 15 0;
|
|
#P button 28 437 15 0;
|
|
#P button 37 127 15 0;
|
|
#P user uslider 175 341 19 77 255 1 0 0;
|
|
#P user uslider 154 341 19 77 255 1 0 0;
|
|
#P user uslider 133 341 19 77 255 1 0 0;
|
|
#P user uslider 112 341 19 77 255 1 0 0;
|
|
#P user uslider 91 341 19 77 255 1 0 0;
|
|
#P user uslider 70 341 19 77 255 1 0 0;
|
|
#P user uslider 49 341 19 77 255 1 0 0;
|
|
#P user uslider 28 341 19 77 255 1 0 0;
|
|
#P message 93 157 29 196617 stop;
|
|
#P message 57 157 33 196617 start;
|
|
#P newex 28 288 204 196617 gnusb;
|
|
#P user panel 15 20 748 59;
|
|
#X brgb 255 247 207;
|
|
#X frgb 0 0 0;
|
|
#X border 0;
|
|
#X rounded 0;
|
|
#X shadow 0;
|
|
#X done;
|
|
#P window linecount 2;
|
|
#P comment 137 191 197 196617 Set polling interval in ms (default 40ms) \, poll 0 stops the clock;
|
|
#P user panel 353 163 414 435;
|
|
#X brgb 230 230 200;
|
|
#X frgb 20 20 20;
|
|
#X border 1;
|
|
#X rounded 0;
|
|
#X shadow 0;
|
|
#X done;
|
|
#P window setfont "Sans Serif" 12.;
|
|
#P window linecount 1;
|
|
#P comment 24 570 159 196620 Port A: 8 Analog inputs;
|
|
#P user panel 15 328 333 270;
|
|
#X brgb 230 230 200;
|
|
#X frgb 20 20 20;
|
|
#X border 1;
|
|
#X rounded 0;
|
|
#X shadow 0;
|
|
#X done;
|
|
#P user panel 16 101 332 137;
|
|
#X brgb 230 230 200;
|
|
#X frgb 20 20 20;
|
|
#X border 1;
|
|
#X rounded 0;
|
|
#X shadow 0;
|
|
#X done;
|
|
#P hidden connect 84 0 1 0;
|
|
#P hidden connect 84 0 0 0;
|
|
#P fasten 83 0 6 0 693 280 33 280;
|
|
#P fasten 82 0 6 0 494 280 33 280;
|
|
#P hidden fasten 31 0 6 0 42 222 33 222;
|
|
#P fasten 30 0 6 0 42 204 33 204;
|
|
#P fasten 29 0 6 0 42 176 33 176;
|
|
#P fasten 7 0 6 0 62 176 33 176;
|
|
#P fasten 8 0 6 0 98 176 33 176;
|
|
#P fasten 17 0 6 0 42 147 33 147;
|
|
#P hidden fasten 32 0 6 0 94 228 33 228;
|
|
#P fasten 41 0 6 0 424 280 33 280;
|
|
#P fasten 42 0 6 0 623 280 33 280;
|
|
#P hidden fasten 35 0 6 0 70 537 7 537 7 280 33 280;
|
|
#P hidden connect 85 0 6 0;
|
|
#P hidden fasten 89 0 6 0 32 633 9 633 9 282 33 282;
|
|
#P connect 6 0 9 0;
|
|
#P connect 9 0 18 0;
|
|
#P connect 6 1 10 0;
|
|
#P connect 10 0 19 0;
|
|
#P fasten 36 0 35 0 32 511 63 511 63 493 70 493;
|
|
#P connect 6 2 11 0;
|
|
#P connect 11 0 20 0;
|
|
#P connect 6 3 12 0;
|
|
#P connect 12 0 21 0;
|
|
#P connect 6 4 13 0;
|
|
#P connect 13 0 22 0;
|
|
#P connect 6 5 14 0;
|
|
#P connect 14 0 23 0;
|
|
#P connect 6 6 15 0;
|
|
#P connect 15 0 24 0;
|
|
#P connect 6 7 16 0;
|
|
#P connect 16 0 25 0;
|
|
#P hidden connect 84 0 3 0;
|
|
#P connect 45 0 44 0;
|
|
#P connect 44 0 53 0;
|
|
#P fasten 6 8 38 0 201 313 386 313;
|
|
#P connect 38 0 63 0;
|
|
#P connect 63 0 65 0;
|
|
#P connect 46 0 44 1;
|
|
#P connect 63 1 66 0;
|
|
#P connect 47 0 44 2;
|
|
#P fasten 53 0 41 0 386 274 417 274 417 256 424 256;
|
|
#P connect 63 2 67 0;
|
|
#P connect 48 0 44 3;
|
|
#P connect 63 3 68 0;
|
|
#P connect 49 0 44 4;
|
|
#P connect 63 4 69 0;
|
|
#P connect 50 0 44 5;
|
|
#P connect 63 5 70 0;
|
|
#P connect 51 0 44 6;
|
|
#P connect 63 6 71 0;
|
|
#P connect 52 0 44 7;
|
|
#P connect 63 7 72 0;
|
|
#P connect 55 0 54 0;
|
|
#P connect 54 0 43 0;
|
|
#P fasten 6 9 39 0 222 311 585 311;
|
|
#P connect 39 0 64 0;
|
|
#P connect 64 0 73 0;
|
|
#P connect 56 0 54 1;
|
|
#P connect 64 1 74 0;
|
|
#P connect 57 0 54 2;
|
|
#P fasten 43 0 42 0 587 274 616 274 616 256 623 256;
|
|
#P connect 64 2 75 0;
|
|
#P connect 58 0 54 3;
|
|
#P connect 64 3 76 0;
|
|
#P connect 59 0 54 4;
|
|
#P connect 64 4 77 0;
|
|
#P connect 60 0 54 5;
|
|
#P connect 64 5 78 0;
|
|
#P connect 61 0 54 6;
|
|
#P connect 64 6 79 0;
|
|
#P connect 62 0 54 7;
|
|
#P connect 64 7 80 0;
|
|
#P pop;
|