NCS Products wrote: > > Ok, I want to send a bit to a PIC pin (w/weak pullup) > from a Centronics port. > > Does anyone have any code in > a readily-available language (Qbasic?) > that shows how to set a bit high/low? > > Something like the Basic equivalent of > > out LPTPORT, 00000001b ;(set D0 pin high) > out LPTPORT, 00000000b ;(set D0 pin low) > > I can also dredge up an old copy of Borland C. > > - Dom I have a lighting controller I wrote in QBASIC that sets up an 8 channel chase on the parralel port. Really neat actually, uses a joystick, (gameport) to toggle on or off and x for chase speed, y controls output duration. Let me know if you could use it and i'll dig it up. Daniel Jircik pannomat@swbell.net