My first LPT port programming test using LED

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,473
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 28, 2009

This is my first test at LPT programming. More info (source code ) can be found at http://eagerfish.eu/lpt-programming-example-in-c-for-ubuntu-linux

Code is simple, it just sends high bit to data pin 1 for 1/2 second or something and after that low bit for same amount of time.

I soldered LED between pin 2 and 20 in series with 550 ohms resistor for this test.

Category:

Science & Technology

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (iceincube)

  • that's cool man. i did everything right up to what you type into the terminal.

    i have no idea how to get it started. this may be a stupid question but hay I'm just starting. would love to get this going

  • @f1ua did you compile the program? I can't understand where you got stuck with your try, You have to compile that code in my blog into a program and the run it.

  • i typed ../lpt and it gives me this

    ioperm: Operation not permitted

  • @f1ua oh, damn. Maybe you have to run this program as root? Cant rally remember this. And use one dot. It means current directory. ./lpt

see all

All Comments (10)

Sign In or Sign Up now to post a comment!
  • @iceincube indeed you should run this program from root.

  • its all good now i have it working thanks. i also have it so that the light stays on.

    i am running if from a vnc in another room and next it will be over the internet .how would i go about individual lights. i have 8 lights wired with resisters into the parallel port. they all go on and off together. i had them working on a windows program so i could run individual lights and set the timing.

    your program is the only one i have seen on the net that works properly on ubuntu.

  • how do you run it? im sorry if this is a stuped question.

    i see you type something in to the terminal but what?

  • yes i did. and its sitting compiled in my home folder.

  • yes i did. and its sitting compiled in my home folder.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more