unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs; type TForm1 = class(TForm) procedure FormClick(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation uses DriverIOCtl; {$R *.DFM} procedure TForm1.FormClick(Sender: TObject); begin WritePortB($EDC8, 0); Caption := IntToStr(ReadPortB($EDCF)); end; end.