Click here to Skip to main content
15,902,767 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi i want to send data binary (high and low ) in parallel port but i don't know how i do that >>>

i have win 7
32 bit

i see that

CSS
[DllImport("inpout32.dll", EntryPoint = "Out32")]


           public static extern void Out32 (int address, int value);


any one know ???

and anther q

is converter (usb to parallel ) work
the same ???
Posted

1 solution

Firstly see here: I/O Ports Uncensored - 1 - Controlling LEDs (Light Emiting Diodes) with Parallel Port[^]

The same code will probably work on the USB->parallel converter, but you may need to find the base port address first.
 
Share this answer
 
Comments
ÂĦmâd Ŝâlâĥ 5-Feb-13 10:09am    
thnx alot .. i will try now ...
but what the address i have 5 command all of them same (int address) for exp 888
or 1,2,3,4,5
OriginalGriff 5-Feb-13 10:26am    
Sorry?
I don't understand what you are asking - please try to explain in more detail.
ÂĦmâd Ŝâlâĥ 5-Feb-13 15:33pm    
ok i mean i need 5 output in parallel port (send 5 value to different address in port )

but i don't know what address i will use
in this command
public static extern void Out32 (int address, int value);


cuz i want to light 5 led


now you understand what i need ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900