|
Re: Accessing paralel port
Quote:
|
Originally Posted by [527]phil
Ok so I started on a small robot that i'm going to control using an old toshiba satalite laptop. I know how to use the parallel port to hook it up. I'm trying to program it in BASIC but i don't know how to send information through the parallel port. What I DO know is that i have to send data bits, eight in total. If I send a 0 it will trigger something off, if I send a 1 it will trigger it on. But how do I send data through a particular port using BASIC language?
|
See: http://ourworld.compuserve.com/homep...wden/page6.htm (it's got some QBASIC code for reading from the parallel port, and does have some mention of using the OUT command for sending data rather than the INP command for reading it.
__________________
Alumni of FRC Team 1006
Former mentor of Full Lego Alchemist (FLL 5621) - Sempar School / Computing Students' Association of Queen's University
|