How To Control The Parallel Port Data Pins Linux
7 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...
-
2:21:54
Laura Loomer
3 hours agoEP48: Biden DOJ Authorized FBI Assassination of President Trump as Sham NYC Trial Insanity Continues
24.4K64 -
15:57
Breaking Points
10 hours agoBlinken THREATENS GLOBAL STARVATION In Secret Arab Meeting
13.8K19 -
1:24:20
TheMonicaCrowleyPodcast
9 hours agoThe Monica Crowley Podcast: Liars, Circuses and Bioweapons
14.8K4 -
54:33
LFA TV
17 hours agoPoetic Justice as CNN Forced to Defend Donald Trump | Trumpet Daily 5.21.24 9pm EST
12K3 -
53:50
The Late Kick with Josh Pate
5 hours agoLate Kick Live Ep 515: Rashada Sues Napier | Conference Sleepers | Bold Predictions | Nebraska Mood
19.3K3 -
1:02:46
The StoneZONE with Roger Stone
4 hours agoWho Shot Down The President Of Iran? + Zelensky Cancels Elections…AGAIN | The StoneZONE
25.4K38 -
1:52:59
The Quartering
7 hours agoWoke Disney/Pixar Collapses, Game Journalism SHUT DOWN, Windows Spying On You & More
46.3K19 -
1:00:00
Edge of Wonder
8 hours agoModern Art Psyop, Money Laundering & CIA’s Hidden Art Collection
27.9K13 -
12:21
Brad Polumbo
1 day agoFemale TikToker targets Harrison Butker with (WILD) rant!
22.7K28 -
1:22:22
The Big Migâ„¢
1 day ago‘BORDERGEDDON’ An American Crisis w/ Hernando Arce
23.1K20