Parallel Port Programming [led light]

This is a discussion on Parallel Port Programming [led light] within the Networking/Device Communication forums, part of the General Programming Boards category; Hello! I want to make a very simple led(blinking light) using printer(parallel) port. I am using Linux. Can anyone please ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    4

    Parallel Port Programming [led light]

    Hello!
    I want to make a very simple led(blinking light) using printer(parallel) port. I am using Linux. Can anyone please give me very simple code example or a tutorial? Thank you!

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    4
    Code:
    The ppdev driver enables accessing port bits, interrupts, negotiating, and setting modes.
    Why do I need this driver? Can't I just access palallel port from my code???

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    Well if you're looking for some drop-in replacement for outport() in DOS, then you're stuck. Linux is a protected OS, so random access to bits of hardware are not allowed for mortals. Super users have some access though.

    http://www.torque.net/linux-pp.html

    Plus do some searches for "/dev/parport" and "/dev/port"
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Parallel Port IO ops not working properly
    By microtechno in forum Linux Programming
    Replies: 16
    Last Post: 06-08-2009, 12:33 PM
  2. Parallel Port to USB controller and outb()
    By coletek in forum Linux Programming
    Replies: 1
    Last Post: 06-05-2009, 06:57 AM
  3. Replies: 3
    Last Post: 02-29-2008, 12:29 PM
  4. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  5. Segmentation Fault - Trying to access parallel port
    By tvsinesperanto in forum C Programming
    Replies: 3
    Last Post: 05-24-2006, 03:28 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21