home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form ledtest
- BackColor = &H00C0C0C0&
- Caption = "LED Examples"
- ClientHeight = 4575
- ClientLeft = 1290
- ClientTop = 2100
- ClientWidth = 7155
- Height = 4950
- Left = 1245
- LinkTopic = "Form1"
- ScaleHeight = 4575
- ScaleWidth = 7155
- Top = 1770
- Width = 7245
- Begin LED LED4
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BevelInner = 0 ' 0 - None
- BevelOuter = 1 ' 1 - Raised
- BevelWidth = 2
- BorderHorizontal= 2
- BorderVertical = 0
- BorderWidth = 0
- Direction = 0 ' 0 - Forward
- Height = 480
- LEDHeight = 28
- LEDIndex = 0
- LEDSep = 2
- LEDStyle = 2 ' 2 - Bitmap
- LEDWidth = 25
- Left = 240
- Mode = 0 ' 0 - Value
- MouseControl = -1 'True
- NumLEDs = 15
- OffPictureGreen = LEDTEST.FRX:0000
- OffPictureRed = LEDTEST.FRX:01CA
- OffPictureYellow= LEDTEST.FRX:0394
- OnPictureGreen = LEDTEST.FRX:055E
- OnPictureRed = LEDTEST.FRX:0728
- OnPictureYellow = LEDTEST.FRX:08F2
- Orientation = 0 ' 0 - Horizontal
- TabIndex = 15
- Top = 3930
- Value = 0
- Width = 6165
- End
- Begin LED LED3
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BevelInner = 0 ' 0 - None
- BevelOuter = 2 ' 2 - Inset
- BevelWidth = 2
- BorderHorizontal= 0
- BorderVertical = 2
- BorderWidth = 2
- Direction = 0 ' 0 - Forward
- Height = 600
- LEDHeight = 28
- LEDIndex = 0
- LEDSep = 0
- LEDStyle = 2 ' 2 - Bitmap
- LEDWidth = 25
- Left = 240
- Mode = 0 ' 0 - Value
- MouseControl = 0 'False
- NumLEDs = 15
- OffPictureGreen = LEDTEST.FRX:0ABC
- OffPictureRed = LEDTEST.FRX:0C86
- OffPictureYellow= LEDTEST.FRX:0E50
- OnPictureGreen = LEDTEST.FRX:101A
- OnPictureRed = LEDTEST.FRX:11E4
- OnPictureYellow = LEDTEST.FRX:13AE
- Orientation = 0 ' 0 - Horizontal
- TabIndex = 14
- Top = 1140
- Value = 0
- Width = 5745
- End
- Begin LED LED1
- AutoSize = 0 'False
- BackColor = &H00C0C0C0&
- BackgroundPicture= LEDTEST.FRX:1578
- BevelInner = 0 ' 0 - None
- BevelOuter = 1 ' 1 - Raised
- BevelWidth = 2
- BorderHorizontal= 20
- BorderVertical = 1
- BorderWidth = 4
- Direction = 1 ' 1 - Backward
- Height = 3315
- LEDHeight = 11
- LEDIndex = 0
- LEDSep = 0
- LEDStyle = 0 ' 0 - Rectangular
- LEDWidth = 11
- Left = 6060
- Mode = 0 ' 0 - Value
- MouseControl = 0 'False
- NumLEDs = 15
- Orientation = 1 ' 1 - Vertical
- TabIndex = 13
- Top = 270
- Value = 0
- Width = 915
- End
- Begin Frame Frame3
- Caption = "Direction"
- Height = 1155
- Left = 4110
- TabIndex = 10
- Top = 2430
- Width = 1815
- Begin OptionButton Option3
- Caption = "Backward"
- Height = 255
- Index = 1
- Left = 300
- TabIndex = 12
- Top = 630
- Width = 1245
- End
- Begin OptionButton Option3
- Caption = "Forward"
- Height = 255
- Index = 0
- Left = 300
- TabIndex = 11
- Top = 360
- Width = 1245
- End
- End
- Begin Frame Frame2
- Caption = "Mode"
- Height = 1035
- Left = 2310
- TabIndex = 6
- Top = 2460
- Width = 1695
- Begin OptionButton Option2
- Caption = "Bitwise"
- Height = 195
- Index = 1
- Left = 360
- TabIndex = 8
- Top = 570
- Width = 1125
- End
- Begin OptionButton Option2
- Caption = "Value"
- Height = 195
- Index = 0
- Left = 360
- TabIndex = 7
- Top = 330
- Width = 1065
- End
- End
- Begin Frame Frame1
- Caption = "LEDStyle"
- Height = 1365
- Left = 270
- TabIndex = 2
- Top = 2430
- Width = 1965
- Begin OptionButton Option1
- Caption = "Bitmap"
- Height = 225
- Index = 2
- Left = 180
- TabIndex = 5
- Top = 810
- Width = 1665
- End
- Begin OptionButton Option1
- Caption = "Circular"
- Height = 225
- Index = 1
- Left = 180
- TabIndex = 4
- Top = 570
- Width = 1665
- End
- Begin OptionButton Option1
- Caption = "Rectangle"
- Height = 225
- Index = 0
- Left = 180
- TabIndex = 3
- Top = 330
- Width = 1665
- End
- End
- Begin HScrollBar HScroll1
- Height = 255
- Left = 570
- Max = 15
- TabIndex = 1
- Top = 1950
- Width = 5325
- End
- Begin LED LED2
- AutoSize = -1 'True
- BackColor = &H00C0C0C0&
- BevelInner = 0 ' 0 - None
- BevelOuter = 2 ' 2 - Inset
- BevelWidth = 3
- BorderHorizontal= 10
- BorderVertical = 2
- BorderWidth = 2
- Direction = 0 ' 0 - Forward
- Height = 510
- LEDHeight = 20
- LEDIndex = 0
- LEDSep = 2
- LEDStyle = 1 ' 1 - Circular
- LEDWidth = 20
- Left = 450
- Mode = 0 ' 0 - Value
- MouseControl = 0 'False
- NumLEDs = 15
- Orientation = 0 ' 0 - Horizontal
- TabIndex = 0
- Top = 510
- Value = 0
- Width = 5370
- End
- Begin Label Label1
- Caption = "Label1"
- Height = 165
- Left = 2490
- TabIndex = 9
- Top = 210
- Width = 1485
- End
- Sub Form_Load ()
- For i = 0 To 8
- led1.LEDIndex = i
- led1.LEDColor = 2
- led2.LEDIndex = i
- led2.LEDColor = 2
- led3.LEDIndex = i
- led3.LEDColor = 2
- led4.LEDIndex = i
- led4.LEDColor = 2
- Next
- For i = 9 To 12
- led1.LEDIndex = i
- led1.LEDColor = 1
- led2.LEDIndex = i
- led2.LEDColor = 1
- led3.LEDIndex = i
- led3.LEDColor = 1
- led4.LEDIndex = i
- led4.LEDColor = 1
- Next
- For i = 13 To 15
- led1.LEDIndex = i
- led1.LEDColor = 0
- led2.LEDIndex = i
- led2.LEDColor = 0
- led3.LEDIndex = i
- led3.LEDColor = 0
- led4.LEDIndex = i
- led4.LEDColor = 0
- Next
- End Sub
- Sub HScroll1_Change ()
- led1.Value = Hscroll1
- led2.Value = Hscroll1
- led3.Value = Hscroll1
- led4.Value = Hscroll1
- label1 = led2.Value
- End Sub
- Sub HScroll1_Scroll ()
- led1.Value = Hscroll1
- led2.Value = Hscroll1
- led3.Value = Hscroll1
- led4.Value = Hscroll1
- label1 = led2.Value
- End Sub
- Sub LED4_Click ()
- If led4.Value <= Hscroll1.Max Then
- Hscroll1 = led4.Value
- Else
- label1 = led4.Value
- End If
- End Sub
- Sub Option1_Click (index As Integer)
- led4.LEDStyle = index
- End Sub
- Sub Option2_Click (index As Integer)
- led4.Mode = index
- If index = 1 Then
- j = led4.NumLEDs - 1
- If j > 31 Then j = 31
- End If
- End Sub
- Sub Option3_Click (index As Integer)
- led4.Direction = index
- End Sub
-