📄 frmmain.frm
字号:
VERSION 5.00
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "tabctl32.ocx"
Begin VB.Form frmMain
Caption = "USB2ISP DEMO WWW.USB-I2C-SPI.COM"
ClientHeight = 7230
ClientLeft = 60
ClientTop = 450
ClientWidth = 7515
Icon = "frmMain.frx":0000
LinkTopic = "Form1"
ScaleHeight = 7230
ScaleWidth = 7515
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton USBIO_NOTIFY_ROUTINE
Caption = "模拟处理设备挺拔中断事件"
Enabled = 0 'False
Height = 330
Left = 2535
TabIndex = 48
Top = 6660
Visible = 0 'False
Width = 3255
End
Begin TabDlg.SSTab SSTab1
Height = 6915
Left = 105
TabIndex = 0
Top = 90
Width = 7305
_ExtentX = 12885
_ExtentY = 12197
_Version = 393216
Tabs = 6
Tab = 5
TabsPerRow = 6
TabHeight = 520
MouseIcon = "frmMain.frx":030A
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
TabCaption(0) = "EPP并口"
TabPicture(0) = "frmMain.frx":0624
Tab(0).ControlEnabled= 0 'False
Tab(0).ControlCount= 0
TabCaption(1) = "MEM并口"
TabPicture(1) = "frmMain.frx":0640
Tab(1).ControlEnabled= 0 'False
Tab(1).ControlCount= 0
TabCaption(2) = "I2C接口"
TabPicture(2) = "frmMain.frx":065C
Tab(2).ControlEnabled= 0 'False
Tab(2).Control(0)= "Frame5"
Tab(2).ControlCount= 1
TabCaption(3) = "EEPROM读写"
TabPicture(3) = "frmMain.frx":0678
Tab(3).ControlEnabled= 0 'False
Tab(3).Control(0)= "Frame10"
Tab(3).Control(1)= "Frame9"
Tab(3).Control(2)= "Frame8"
Tab(3).ControlCount= 3
TabCaption(4) = "数字I/O"
TabPicture(4) = "frmMain.frx":0694
Tab(4).ControlEnabled= 0 'False
Tab(4).Control(0)= "Frame11"
Tab(4).ControlCount= 1
TabCaption(5) = "SPI接口"
TabPicture(5) = "frmMain.frx":06B0
Tab(5).ControlEnabled= -1 'True
Tab(5).ControlCount= 0
Begin VB.Frame Frame5
Caption = "以流模式读写兼容I2C的两线同步串口,API=USBIO_StreamI2C"
Height = 6435
Left = -74835
TabIndex = 34
Top = 450
Width = 6975
Begin VB.Frame Frame17
Caption = "设置I2C/IIC总线的读写速度"
Height = 735
Left = 480
TabIndex = 49
Top = 5400
Width = 6135
Begin VB.OptionButton I2CM
Caption = "750KHz"
Height = 255
Index = 3
Left = 4920
TabIndex = 53
Top = 360
Width = 975
End
Begin VB.OptionButton I2CM
Caption = "400KHz"
Height = 255
Index = 2
Left = 3480
TabIndex = 52
Top = 360
Width = 975
End
Begin VB.OptionButton I2CM
Caption = "100KHz"
Height = 255
Index = 1
Left = 2160
TabIndex = 51
Top = 360
Value = -1 'True
Width = 975
End
Begin VB.OptionButton I2CM
Caption = "20KHz"
Height = 255
Index = 0
Left = 840
TabIndex = 50
Top = 360
Width = 855
End
End
Begin VB.Frame Frame7
Caption = "写入数据"
Height = 2505
Left = 450
TabIndex = 41
Top = 240
Width = 6120
Begin VB.CommandButton StreamICRW
Caption = "Write\Read"
Height = 375
Left = 4575
TabIndex = 47
Top = 330
Width = 1185
End
Begin VB.TextBox I2CWRBuf
Height = 1530
Left = 1125
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 43
Top = 840
Width = 4695
End
Begin VB.TextBox I2CWRLen
BeginProperty DataFormat
Type = 0
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 375
Left = 1140
TabIndex = 42
Top = 330
Width = 2415
End
Begin VB.Label Label17
Caption = "数据"
Height = 255
Left = 300
TabIndex = 46
Top = 840
Width = 615
End
Begin VB.Label Label24
Caption = "长度"
Height = 255
Left = 300
TabIndex = 45
Top = 390
Width = 495
End
Begin VB.Label Label25
Caption = "(<400H)"
Height = 180
Left = 3630
TabIndex = 44
Top = 427
Width = 855
End
End
Begin VB.Frame Frame6
Caption = "读取数据"
Height = 2505
Left = 480
TabIndex = 35
Top = 2760
Width = 6120
Begin VB.TextBox I2CRDLen
BeginProperty DataFormat
Type = 0
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 375
Left = 1050
TabIndex = 37
Top = 315
Width = 2415
End
Begin VB.TextBox I2CRDBuf
Height = 1530
Left = 1050
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 36
Top = 825
Width = 4695
End
Begin VB.Label Label26
Caption = "长度"
Height = 255
Left = 330
TabIndex = 40
Top = 375
Width = 495
End
Begin VB.Label Label27
Caption = "数据"
Height = 255
Left = 330
TabIndex = 39
Top = 825
Width = 615
End
Begin VB.Label Label30
Caption = "(<400H)"
Height = 180
Left = 3555
TabIndex = 38
Top = 412
Width = 855
End
End
End
Begin VB.Frame Frame11
Height = 6015
Left = -74925
TabIndex = 33
Top = 600
Width = 7140
End
Begin VB.Frame Frame8
Caption = "写入数据,API=USBIO_WriteEEPROM"
Height = 3180
Left = -73215
TabIndex = 24
Top = 420
Width = 5415
Begin VB.TextBox WrDataLen
BeginProperty DataFormat
Type = 0
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 375
Left = 345
TabIndex = 28
Text = "0"
Top = 1305
Width = 2415
End
Begin VB.TextBox WrDataBuf
Height = 1025
Left = 345
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 27
Top = 1995
Width = 4695
End
Begin VB.TextBox WrDataAddr
BeginProperty DataFormat
Type = 0
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 375
Left = 330
TabIndex = 26
Text = "0"
Top = 570
Width = 2415
End
Begin VB.CommandButton eepromWrDate
Caption = "Write"
Height = 375
Left = 4035
TabIndex = 25
Top = 1230
Width = 975
End
Begin VB.Label Label38
Caption = "写入长度"
Height = 255
Left = 330
TabIndex = 32
Top = 1020
Width = 810
End
Begin VB.Label Label37
Caption = "(<400H)"
Height = 255
Left = 1125
TabIndex = 31
Top = 1020
Width = 765
End
Begin VB.Label Label36
Caption = "多个数据(16进制,两字符一组)"
Height = 225
Left = 330
TabIndex = 30
Top = 1725
Width = 3075
End
Begin VB.Label Label33
Caption = "数据单元起始地址"
Height = 255
Left = 315
TabIndex = 29
Top = 270
Width = 1650
End
End
Begin VB.Frame Frame9
Caption = "读出数据,API=USBIO_ReadEEPROM"
Height = 3180
Left = -73230
TabIndex = 15
Top = 3645
Width = 5415
Begin VB.CommandButton eepromRdDate
Caption = "Read"
Height = 375
Left = 4035
TabIndex = 19
Top = 1245
Width = 975
End
Begin VB.TextBox RdDataAddr
BeginProperty DataFormat
Type = 0
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 375
Left = 315
TabIndex = 18
Text = "0"
Top = 540
Width = 2415
End
Begin VB.TextBox RdDataBuf
Height = 1025
Left = 315
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 17
Top = 1995
Width = 4695
End
Begin VB.TextBox RdDataLen
BeginProperty DataFormat
Type = 0
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 375
Left = 315
TabIndex = 16
Text = "0"
Top = 1305
Width = 2415
End
Begin VB.Label Label39
Caption = "数据单元起始地址"
Height = 255
Left = 315
TabIndex = 23
Top = 270
Width = 1650
End
Begin VB.Label Label35
Caption = "多个数据(16进制,两字符一组)"
Height = 225
Left = 330
TabIndex = 22
Top = 1725
Width = 3075
End
Begin VB.Label Label34
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -