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...
-
8:22:30
SpartakusLIVE
9 hours ago#1 Friday Night HYPE, viewers GLUED to the screen
60.6K -
55:50
NAG Podcast
8 hours agoAda Lluch: BOLDTALK W/Angela Belcamino
27.6K2 -
2:45:31
VapinGamers
5 hours ago $10.43 earnedKellan Graves - Fallen - Game Review and Game KeyGiveaway - !rumbot !music
26.5K -
1:06:41
MattMorseTV
8 hours ago $40.93 earned🔴Trump PREPARES for WAR with VENEZUELA.🔴
52.6K69 -
39:59
Clownfish TV
12 hours agoHollywood NO MORE! Animation Industry Will DIE First?! | Clownfish TV
30.2K2 -
25:57
The Kevin Trudeau Show Limitless
2 days agoThe Sound Of Control: This Is How They Program You
75K22 -
47:41
Sarah Westall
6 hours agoNew Actions by Insiders Never Seen in History – Bitcoin Moves Ahead w/ Andy Schectman
28K3 -
1:08:26
Glenn Greenwald
9 hours agoGlenn Takes Your Questions on Bill Ackman's Meddling in the NYC Election, Dems' Refusal to Endorse Zohran; MAGA Abandoning "America First," and More | SYSTEM UPDATE #537
118K33 -
3:48:54
Nerdrotic
12 hours ago $31.79 earnedStar Wars is DEAD! | Is Hollywood Killing Pop Culture | WB for sale - Friday Night Tights 377
98.5K8 -
4:00:35
SynthTrax & DJ Cheezus Livestreams
1 day agoFriday Night Synthwave 80s 90s Electronica and more DJ MIX Livestream Electronic Favorites Edition
20.6K2