Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Any one know how to access individual pins on the parallel port in Linux and what the voltage levels are? If I find something before someone replies I'll post again.
the pins run at 5v, most of them with a very low current though, so are only useful for data, not power (you can gang together a big bunch pins (say the output port) and power a small IC if you really want.
it's pretty easy to set individual pins, but the last time i did it was 1 year ago for my degree project (a fully functional oscilloscope capture engine).
i found the "parapin" wrappers useful for a lot of interaction and that's also a good enough bit of source code to read through (it's easy enough to translate to C++ if need be)
one of my key resources was the BEyond Logic site, has shedloads of info (although mainly for win32 programming.. but it's very similar at register level. just need a different c library)
not a great example really, there's a lot of excess junk there, and appears to actually use an additional bit of code to set the lines (from the ports.h include statement) to set the lines you'll want to get familiar with the outb command
I am running something much simpler that I'm sure you've seen before (lptout) but my problem I have is that it works on my laptop, but on my desktop, I get a segmentation fault. Anyone have any idea how to fix this?
please don't drag up unlrelated threads. i'd suggest you create a new thread in Programming, and add a lot more information, e.g. gdb backtraces etc...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.