Premium Only Content
This video is only available to Rumble Premium subscribers. Subscribe to
enjoy exclusive content and ad-free viewing.
How To Control The Parallel Port Data Pins Linux
2 years ago
15
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...
-
18:35
Odd Man Out
2 days agoFrance's shame of the century all for DEI pandering
5.46K84 -
2:12:37
The Quartering
3 hours agoWe've Been Invaded By Low IQ Killing Machines
120K12 -
LIVE
Jeff Ahern
47 minutes agoFriday Freak out with Jeff Ahern
26 watching -
LIVE
Side Scrollers Podcast
1 day ago🔴SIDE SCROLLERS SUB-A-THON🔴FINAL DAY!🔴Craig Makeover + US Dart Throw + More!
1,253 watching -
9:26
Rethinking the Dollar
4 hours agoCar Gone. Job Gone. Hope Gone? The Silent Debt Crisis In America
2.04K5 -
2:10:21
The Culture War with Tim Pool
4 hours agoLeftist TERROR Attack On Coast Guard, Liberals Claim Trump Is A TYRANT | The Culture War DEBATE
115K254 -
23:38
Professor Nez
2 hours ago🚨NO WAY HE RECOVERS! Trump CONFRONTS Aussie Ambassador & Finishes Him Off
12.7K10 -
4:07
Sean Unpaved
2 hours agoFBI Hoops Bust Day 2!, NFL/CFB Week 8-9, & World Series Opener Preview
12.9K -
46:24
Lara Logan
15 hours agoPUTIN’S QUIET DIPLOMAT: Kirill Dmitriev on Peace & War in Ukraine | EP 41 | Going Rogue w Lara Logan
16.7K6 -
12:29
Clintonjaws
18 hours ago $24.26 earnedShane Gillis vs 'The View' - This Is Priceless!
63.7K28