Results 1 to 3 of 3

Thread: Parallel Port and VB.NET

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2005
    Posts
    19

    Parallel Port and VB.NET

    Hi all,


    I am trying to write a program which will send data to the parallel port and light up some LEDs. I dun have problem on the programming part( i think) as i can send data to the parallel port. The problem is, when i send 0(zero) to the port, all LEDs is suppose to be OFF, but the first 3 LEDs still ON.

    If you don't understand what am i talking about please visit http://www.codeproject.com/csharp/csppleds.asp

    p/s: i dunno where to post this problem, so i post it here. any idea or solution are welcome ^^

    Thank you in advanced

    Hallie

  2. #2
    Fanatic Member Andy_P's Avatar
    Join Date
    May 2005
    Location
    Dunstable, England
    Posts
    669

    Re: Parallel Port and VB.NET

    What happens when you send &hFF? Do all the LED's come on?

    Do the first three ever go off, whatever code you send?

    Try sending codes of &H1, &H2, &H4, &H8, etc, to bring on one individual LED at a time.

    Of course, it may be a wiring fault. Hope you haven't fried your parallel port.
    Using Windows XP Home sp3
    Mucking around with C# 2008 Express
    while ( this.deadHorse ) { flog( ); }


  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2005
    Posts
    19

    Re: Parallel Port and VB.NET

    Yea, whatever code i send to it, the first three LED will light up.
    I've been using that same old parallel port with my printer, no prob
    Hallie, newbie to VB.NET

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width