Comments on How to control peripheral ports: Accessing and writing on Parallel Port with C on Linux. Part I

This tutorial will show you how to control the pins of the parallel port of your PC on Linux from within a small C program. In this example, we switch just a few LED's on and off, but the same technology can be used to control relays to switch devices with high power consumption on and off for home automation.

3 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: zacnov

Can input data use d0,d1..d7? I use biredirectional.

By: Marcin

y=pow(2,w);

WTF? :) Have you ever hear about bit shifting?

By: Eric Flemming

Looking to use the 8 data points out of the parrallel port to send data to 8 different robots for programming the robots then letting them run the program. Idea running robots onthe moon from earth to build base of operation for exploration.