How To Control The Parallel Port Data Pins Linux
9 months ago
13
In this video I go over how to use the parallel port to control LEDs and relays using a C application on Linux.
Source Code Link:
https://github.com/williamhlane/ParC.git
Source Code:
#include <stdio.h>
#include <unistd.h>
#include <sys/io.h>
#define PortAddress (0x0378)
int main()
{
int number;
printf("Enter the value for the pins you'd like to activate.");
scanf("%d", &number);
if (ioperm(PortAddress, 1, 1))
{
printf("ioperm(%x) failed. Are you root?", PortAddress);
return 1;
}
outb(number, PortAddress);
return 0;
}
Loading comments...
-
3:59
WHL3
9 months agoHow To Find Your Parallel Port Address on Linux
9 -
13:54
WHL3
9 months agoHow to control the parallel port data pins with a web server
21 -
34:16
My Heap
1 year agoLinuxCNC for the Hobbyist - 020 - Parallel Port Revisited
19 -
19:04
My Heap
1 year agoLinuxCNC for the Hobbyist - 010 - LinuxCNC and the Parallel Port
6 -
18:07
lewis9514
2 years agoProgramming a Stepper Motor Controller on a Printer Port
8 -
12:40
AccAutomation
2 years agoRaspberry Pi Serial Port Programming
17 -
12:40
AccAutomation
2 years agoRaspberry Pi 4 Serial Port Programming
28 -
16:54
Keypad Integration
3 years ago80C51 microprocessor Keypad integration and Multiplexing 6 - 7 Segment Displays.
26 -
7:47
INVENTOR_PLUS
1 year agoHow to make multiple USB port
3 -
6:18
lewis9514
2 years agoBuild or Buy a Printer Port Breakout Board
3