|
|||||
3.2.2. Input and Output Data - Parallel Port Program exp322.pas detects input from swichts and gives an action by outputting data that have been detected to Port Data that connected to 8 LED. Form design is shown in picture bellow. Delphi Programming ( Download File exp322.zip ) a. Puts 1 Timers Components, 1 Edit Components and label on Form, as shown in picture bellow. Setting up Timer1 component for Enabled = true, and Interval = 1000 ( approximataly = 1000 ms delay time ). b.Click on timer1 component to insert with the program as shown bellow procedure TInput.Timer1Timer(Sender: TObject); c. To run the program, you can hits F9 or RUN menu, and then you will show a picture as shown bellow, and try to simulate the program by changing input swicht. |
Free Software Lesson 1 Lesson
4
|
||||