VERSION 5.00 Begin VB.Form Form1 Caption = "Led on/off" ClientHeight = 1035 ClientLeft = 60 ClientTop = 405 ClientWidth = 3180 LinkTopic = "Form1" ScaleHeight = 1035 ScaleWidth = 3180 StartUpPosition = 3 'Windows Default Begin VB.CommandButton Command2 Caption = "LEDS OFF" Height = 495 Left = 1680 TabIndex = 1 Top = 240 Width = 1215 End Begin VB.CommandButton Command1 Caption = "LEDS ON" Height = 495 Left = 120 TabIndex = 0 Top = 240 Width = 1215 End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Declare Function Inp Lib "inpout32.dll" _ Alias "Inp32" (ByVal PortAddress As Integer) As Integer Private Declare Sub Out Lib "inpout32.dll" _ Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer) Dim Port1 As Integer Private Sub Command1_Click() Port1 = 888 Out Port1, 1 End Sub Private Sub Command2_Click() Port1 = 888 Out Port1, 0 End Sub