Qbasic stuff
Hi,
Programmnig in QBasic is fairly simple.
the OUT command is the simpliest to use. The parallel port usually risides at the following addresses:
&H378 - For the data outputs of the first port LPT1 (eightlines here)
&H37A - For the control outs of the first (4 lines here I think)
&H278 - For the data outputs of the second port LPT2
&H27A - For the control outs of the second
The command:
Out &H378, 1
Will make 5V appear on Data0 on the port
Out &H378, 0
Will take all outputs to 0V on the data lines
Out &H378, 4
Will make 5V appear on Data2 on the port
Basically - write values of 0,1,2,4,8,16,32,64,128, to control the lines - you can add them up to do more than one at once. (total for 8 lines = 255)
Java smells