#N canvas 0 27 742 490 10; #X floatatom 47 380 5 0 0 0 - - -; #X floatatom 121 348 5 0 0 0 - - -; #X floatatom 196 323 5 0 0 0 - - -; #X obj 47 34 tgl 15 0 empty empty empty 17 7 0 10 -24198 -1 -1 0 1 ; #X text 420 278 * my system resets the owner of the printer port to 'root.lp' so I need to issue as root 'chown myuser.lp'; #X text 421 37 * you will need : a paper clip (or a 'high tech' solid core 22-18 awg wire) an led a button; #X text 422 238 * consult http://en.wikipedia.org/wiki/Parallel_Port for the pinouts + more; #X text 425 357 7 6 5 4 3 2 1 0 bit number; #X text 425 371 9 8 7 6 5 4 3 2 pin number; #X text 424 331 layout of bit to pin numbers; #X text 67 33 <-- This will send a 0 or a 1 to the first pin; #X text 421 145 2 connect the led between pins 2 (Data0) and 23 (GND) ; #X text 421 87 1 break the paper clip in two and connect pin 11 (Busy) to pin 24 (GND) and pin 12 (Paper-Out) to 25 (GND). Those pins are normally 1 and grounding them opens the port for messages.; #X text 113 228 Will accept values from 0-255; #X obj 1 -37 cnv 15 840 18 empty empty empty 20 12 0 14 -228992 -66577 0; #X text 722 -36 GridFlow 0.9.0; #X obj 47 132 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1 ; #X obj 69 132 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1 ; #X obj 91 132 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1 ; #X obj 113 132 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1; #X obj 136 132 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1; #X obj 158 132 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1; #X obj 180 132 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1; #X obj 203 132 tgl 15 0 empty empty empty 0 -6 0 8 -260818 -1 -1 0 1; #X obj 47 229 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10 -241291 -1 -1 0 256; #X obj 47 191 #fold +; #X obj 47 210 #export; #X obj 47 172 # << (0 1 2 3 4 5 6 7); #X obj 47 153 #pack 8 \, \, \, \, \, \, \, \, \, \, \, \, \, \, \, \,; #X text 206 293 takes the port as argument; #X text 93 379 <-- reserved for future use; #X text 44 -1 The cheapest digital i/o interface; #X text 238 322 <-- parallel port flags; #X text 419 188 3 connect a button between pin 10 and 22 (GND); #X text 163 348 <-- status (pin 10); #X obj 47 293 parallel_port /dev/lp0; #X obj 47 63 metro 1; #X text 425 402 Flags : PERRORP (active low) \, PSELECD (active high) \, POUTPA (active high) \, PACK (active low) \, PBUSY (active high) ; #X obj 11 -37 parallel_port /dev/someport; #X connect 3 0 36 0; #X connect 16 0 28 0; #X connect 17 0 28 1; #X connect 18 0 28 2; #X connect 19 0 28 3; #X connect 20 0 28 4; #X connect 21 0 28 5; #X connect 22 0 28 6; #X connect 23 0 28 7; #X connect 24 0 35 0; #X connect 25 0 26 0; #X connect 26 0 24 0; #X connect 27 0 25 0; #X connect 28 0 27 0; #X connect 35 0 0 0; #X connect 35 1 1 0; #X connect 35 2 2 0; #X connect 36 0 16 0;