---

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

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.