Quote:
var usrIn : string (1)
PC.ParallelPut (1, 0)
put "Parallel port has been zeroed, press any key to continue..."
getch(usrIn)
loop
for i : 0 .. 7
%Set data bit i on parallel port LPT2
PC.ParallelPut (1, 2 ** i)
put "PC. ParallelPut(" , 2**i , ")"
end for
delay (1000)
put "Press a key to go around, or press Escape to exit..."
getch(usrIn)
exit when usrIn (1) = chr (27)
end loop
PC.ParallelPut (1, 0)
My teacher jsut gave me this example but I don't really know how this works.
Basically the whole point of the my turing is this. If you look at my PARRAELTEST.T i am trying to make that work with the code i posted above.
I am basically making a parrael port and connecting it to my computer. ANd the turing is the input and the LED light as a output. I do not how to connect the code above into my turing file so my turing file is working as a INPUT sign.
PLEASE HELP!