aboutsummaryrefslogtreecommitdiff
path: root/reference/lpt-help.pd
blob: 32023cd44055a7c4fef5158523fe0e8cf0d75646 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#N canvas 1 88 640 508 10;
#X text 129 36 write data to the (parallel) port;
#X obj 81 355 % 256;
#X floatatom 81 304 4 0 0 0 - - -;
#X text 122 304 write an 8bit-word;
#X obj 90 33 lpt;
#X text 521 30 part of zexy;
#X text 79 64 this does not work on osX (as there is no parallel port)
;
#N canvas 0 0 631 406 windows 0;
#X text 32 16 To get it running under WinNT/2000/XP a special kernel
driver is needed. These systems do not allow direct access to I/O ports.
;
#X text 53 207 If you ever whish to remove the kernel driver start
the programm again and click 'Stop'.;
#X text 54 242 Under Win95/98/Me all this is not needed!!!;
#X text 52 272 Good Luck!;
#X text 54 141 The subfolder 'UserPort' contains a kernel driver that
handles the I/O stuff. Just copy the file UserPort.sys into %WINDIR%/system32/drivers
(e.g. C:/WinNT/system32/drivers) and run the program UserPort.exe.
Click on 'Start' and then 'Exit'.;
#X text 175 112 ftp://iem.at/DOSen/UserPort/;
#X text 172 82 http://www.embeddedtronics.com/public/Electronics/minidaq/..
../userport;
#X text 49 79 downloads:;
#X text 267 326 thanks to Olaf Matthes for this;
#X restore 292 86 pd windows;
#X text 80 253 you should be member of the "lp" group or set the the
permissions of the device file;
#X obj 81 397 lpt /dev/parport0;
#N canvas 0 0 553 385 raw 0;
#X text 24 127 if your port-address exceeds 0x3ff \, "lpt" will try
to get all permissions with the iopl()-command. this might be dangerous
!;
#X text 26 50 you can access all ports on your system when using "lpt
<hex-port-address>";
#X text 26 89 you might have to be root (superuser) \, in order to
gain raw access to the port.;
#X text 75 230 parallel ports 0 \, 1 \, 2;
#X obj 81 251 lpt 0;
#X obj 130 251 lpt 1;
#X obj 179 251 lpt 2;
#X obj 68 329 lpt 0x378;
#X text 63 308 another port (directly specifying the port address)
;
#X restore 460 150 pd raw access;
#X text 78 86 w32 users shoud read this:;
#X text 81 153 linux users can use the deprecated RAW access method
;
#X text 80 219 you can access your parallel ports by accessing /dev/parport0
(and similar);
#X text 82 189 the preferred way for linux users is to use the device-filesystem:
;
#X text 217 398 <-- access /dev/parport0;
#X obj 84 465 lpt/dev/parports/0;
#X text 222 466 <-- some systems might use this syntax;
#X msg 335 309 control \$1;
#X obj 335 330 % 256;
#X floatatom 335 291 4 0 0 0 - - -;
#X text 373 291 set the control bits;
#X floatatom 81 429 5 0 0 0 - - -;
#X msg 337 363 bang;
#X text 380 367 read the input bits;
#X text 131 429 input bits;
#N canvas 458 162 494 344 META 0;
#X text 12 145 HELP_PATCH_AUTHORS "pd meta" information added by Jonathan
Wilkes for Pd version 0.42.;
#X text 12 25 LICENSE GPL v2;
#X text 12 125 AUTHOR IOhannes m zmoelnig;
#X text 12 45 DESCRIPTION write data to the (parallel) port;
#X text 12 65 INLET_0 float bang control;
#X text 12 85 INLET_1;
#X text 12 105 OUTLET_0 float;
#X text 12 5 KEYWORDS control filesystem;
#X restore 571 477 pd META;
#X connect 1 0 9 0;
#X connect 2 0 1 0;
#X connect 9 0 22 0;
#X connect 18 0 19 0;
#X connect 19 0 9 0;
#X connect 20 0 18 0;
#X connect 23 0 9 0;