Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
{$I+}
var
lpt1 : file;
s : String;
begin
AssignFile(lpt1, 'LPT1');
Reset(lpt1);
{ to write to the parallel port }
s := 'this is going out';
BlockWrite(lpt1, s, Length(s));
{ to read from the parallel port }
try
BlockRead(lpt1, s, 255);
except
end;
end.
procedure TForm2.btnFeedLPT1Click(Sender: TObject);
var
sl: TstringList;
begin
sl := TstringList.Create;
try
sl.Add(#02 + 'F');
sl.SaveToFile('LPT1');
finally
sl.Free;
end;
end;