⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmmain.frm

📁 非常好的的USB 接口程序 基于pic单片机
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form frmMain 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "PIC18F2550 USB HID IO - www.semifluid.com"
   ClientHeight    =   8055
   ClientLeft      =   240
   ClientTop       =   315
   ClientWidth     =   9825
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   8055
   ScaleWidth      =   9825
   Begin VB.CommandButton cmdDemoWritePortB 
      Caption         =   "Demo Write Port B"
      Height          =   375
      Left            =   8160
      TabIndex        =   60
      Top             =   6600
      Width           =   1575
   End
   Begin VB.TextBox txtReadADCBytePin 
      Height          =   375
      Left            =   2520
      TabIndex        =   59
      Text            =   "0"
      Top             =   2280
      Width           =   495
   End
   Begin VB.TextBox txtReadADCnTimesPin 
      Height          =   375
      Left            =   3480
      TabIndex        =   57
      Text            =   "0"
      Top             =   2760
      Width           =   495
   End
   Begin VB.TextBox txtReadADCnTimesMSPin 
      Height          =   375
      Left            =   6000
      TabIndex        =   56
      Text            =   "0"
      Top             =   3720
      Width           =   495
   End
   Begin VB.TextBox txtReadADCnTimesUSPin 
      Height          =   375
      Left            =   6000
      TabIndex        =   55
      Text            =   "0"
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton cmdReadRAMData 
      Caption         =   "Read RAM Data"
      Height          =   375
      Left            =   8160
      TabIndex        =   54
      Top             =   2280
      Width           =   1575
   End
   Begin VB.TextBox txtReadRAMByte 
      Height          =   375
      Left            =   1800
      TabIndex        =   53
      Text            =   "0"
      Top             =   1320
      Width           =   495
   End
   Begin VB.TextBox txtInput 
      Height          =   1335
      Left            =   6960
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   52
      Top             =   2760
      Width           =   2775
   End
   Begin VB.TextBox txtReadPinValue 
      Enabled         =   0   'False
      Height          =   375
      Left            =   6960
      TabIndex        =   51
      Text            =   "0"
      Top             =   7080
      Width           =   495
   End
   Begin VB.TextBox txtWriteRAMByte 
      Height          =   375
      Left            =   2640
      TabIndex        =   50
      Text            =   "0"
      Top             =   1800
      Width           =   495
   End
   Begin VB.TextBox txtWriteRAMByteValue 
      Height          =   375
      Left            =   1800
      TabIndex        =   48
      Text            =   "0"
      Top             =   1800
      Width           =   495
   End
   Begin VB.TextBox txtReadRAMByteValue 
      Enabled         =   0   'False
      Height          =   375
      Left            =   6960
      TabIndex        =   47
      Text            =   "0"
      Top             =   1320
      Width           =   495
   End
   Begin VB.TextBox txtReadADCByteValue 
      Enabled         =   0   'False
      Height          =   375
      Left            =   6960
      TabIndex        =   46
      Text            =   "0"
      Top             =   2280
      Width           =   495
   End
   Begin VB.TextBox txtReadPort 
      Enabled         =   0   'False
      Height          =   375
      Left            =   6960
      TabIndex        =   45
      Text            =   "0"
      Top             =   6120
      Width           =   495
   End
   Begin VB.TextBox txtWritePort 
      Height          =   375
      Left            =   1800
      TabIndex        =   44
      Text            =   "0"
      Top             =   6600
      Width           =   495
   End
   Begin VB.TextBox txtWritePinValue 
      Height          =   375
      Left            =   3480
      TabIndex        =   43
      Text            =   "0"
      Top             =   7560
      Width           =   495
   End
   Begin VB.TextBox txtWritePin 
      Height          =   375
      Left            =   1800
      TabIndex        =   41
      Text            =   "0"
      Top             =   7560
      Width           =   495
   End
   Begin VB.CommandButton cmdWritePin 
      Caption         =   "Write Pin"
      Height          =   375
      Left            =   120
      TabIndex        =   40
      Top             =   7560
      Width           =   1575
   End
   Begin VB.TextBox txtReadPin 
      Height          =   375
      Left            =   1800
      TabIndex        =   38
      Text            =   "0"
      Top             =   7080
      Width           =   495
   End
   Begin VB.CommandButton cmdReadPin 
      Caption         =   "Read Pin"
      Height          =   375
      Left            =   120
      TabIndex        =   37
      Top             =   7080
      Width           =   1575
   End
   Begin VB.CommandButton cmdWritePort 
      Caption         =   "Write Port B"
      Height          =   375
      Left            =   120
      TabIndex        =   36
      Top             =   6600
      Width           =   1575
   End
   Begin VB.CommandButton cmdReadPort 
      Caption         =   "Read Port B"
      Height          =   375
      Left            =   120
      TabIndex        =   35
      Top             =   6120
      Width           =   1575
   End
   Begin VB.CommandButton cmdClearUseCRC 
      Caption         =   "Clear Use CRC"
      Height          =   375
      Left            =   120
      TabIndex        =   34
      Top             =   5640
      Width           =   1575
   End
   Begin VB.CommandButton cmdSetUseCRC 
      Caption         =   "Set Use CRC"
      Height          =   375
      Left            =   120
      TabIndex        =   33
      Top             =   5160
      Width           =   1575
   End
   Begin VB.TextBox txtSetRAMByte 
      Height          =   375
      Left            =   1800
      TabIndex        =   32
      Text            =   "255"
      Top             =   4680
      Width           =   495
   End
   Begin VB.CommandButton cmdSetRAMByte 
      Caption         =   "Write Byte to RAM"
      Height          =   375
      Left            =   120
      TabIndex        =   31
      Top             =   4680
      Width           =   1575
   End
   Begin VB.CommandButton cmdClearRAM 
      Caption         =   "Clear RAM"
      Height          =   375
      Left            =   120
      TabIndex        =   30
      Top             =   4200
      Width           =   1575
   End
   Begin VB.TextBox txtReadADCnTimesMSValue 
      Height          =   375
      Left            =   3240
      TabIndex        =   28
      Text            =   "1"
      Top             =   3720
      Width           =   495
   End
   Begin VB.TextBox txtReadADCnTimesMS 
      Height          =   375
      Left            =   1800
      TabIndex        =   26
      Text            =   "511"
      Top             =   3720
      Width           =   495
   End
   Begin VB.CommandButton cmdReadADCnTimesMS 
      Caption         =   "Read ADC"
      Height          =   375
      Left            =   120
      TabIndex        =   25
      Top             =   3720
      Width           =   1575
   End
   Begin VB.TextBox txtReadADCnTimesUSValue 
      Height          =   375
      Left            =   3240
      TabIndex        =   23
      Text            =   "1"
      Top             =   3240
      Width           =   495
   End
   Begin VB.TextBox txtReadADCnTimesUS 
      Height          =   375
      Left            =   1800
      TabIndex        =   21
      Text            =   "511"
      Top             =   3240
      Width           =   495
   End
   Begin VB.CommandButton cmdReadADCnTimesUS 
      Caption         =   "Read ADC"
      Height          =   375
      Left            =   120
      TabIndex        =   20
      Top             =   3240
      Width           =   1575
   End
   Begin VB.TextBox txtReadADCnTimes 
      Height          =   375
      Left            =   1800
      TabIndex        =   18
      Text            =   "511"
      Top             =   2760
      Width           =   495
   End
   Begin VB.CommandButton cmdReadADCnTimes 
      Caption         =   "Read ADC"
      Height          =   375
      Left            =   120
      TabIndex        =   17
      Top             =   2760
      Width           =   1575
   End
   Begin VB.CommandButton cmdReadADCByte 
      Caption         =   "Read ADC Byte"
      Height          =   375
      Left            =   120
      TabIndex        =   16
      Top             =   2280
      Width           =   1575
   End
   Begin VB.CommandButton cmdWriteRAMByte 
      Caption         =   "Write RAM Byte"
      Height          =   375
      Left            =   120
      TabIndex        =   15
      Top             =   1800
      Width           =   1575
   End
   Begin VB.CommandButton cmdReadRAMByte 
      Caption         =   "Read RAM Byte"
      Height          =   375
      Left            =   120
      TabIndex        =   14
      Top             =   1320
      Width           =   1575
   End
   Begin VB.TextBox txtByte 
      Height          =   285
      Index           =   7
      Left            =   6240
      TabIndex        =   10
      Text            =   "255"
      Top             =   480
      Width           =   495
   End
   Begin VB.TextBox txtByte 
      Height          =   285
      Index           =   6
      Left            =   5520
      TabIndex        =   9
      Text            =   "255"
      Top             =   480
      Width           =   495
   End
   Begin VB.TextBox txtByte 
      Height          =   285
      Index           =   5
      Left            =   4800
      TabIndex        =   8
      Text            =   "255"
      Top             =   480
      Width           =   495
   End
   Begin VB.TextBox txtByte 
      Height          =   285
      Index           =   4
      Left            =   4080
      TabIndex        =   7
      Text            =   "255"
      Top             =   480
      Width           =   495
   End
   Begin VB.TextBox txtByte 
      Height          =   285
      Index           =   3
      Left            =   3360
      TabIndex        =   6
      Text            =   "255"
      Top             =   480
      Width           =   495
   End
   Begin VB.TextBox txtByte 
      Height          =   285
      Index           =   2
      Left            =   2640
      TabIndex        =   5
      Text            =   "255"
      Top             =   480
      Width           =   495
   End
   Begin VB.TextBox txtByte 
      Height          =   285
      Index           =   1
      Left            =   1920
      TabIndex        =   4
      Text            =   "255"
      Top             =   480
      Width           =   495
   End
   Begin VB.TextBox txtByte 
      Height          =   285
      Index           =   0
      Left            =   1200
      TabIndex        =   3
      Text            =   "255"
      Top             =   480
      Width           =   495
   End
   Begin VB.CommandButton cmdOnce 
      Caption         =   "Read/Write"
      Height          =   372
      Left            =   6840
      TabIndex        =   2
      Top             =   360
      Width           =   1575
   End
   Begin VB.Timer timerCheckConnection 
      Interval        =   2000
      Left            =   3720
      Top             =   0
   End
   Begin VB.Timer tmrDelay 
      Enabled         =   0   'False
      Left            =   3240
      Top             =   0
   End
   Begin VB.Label Label12 
      Caption         =   "on Pin A"
      Height          =   255
      Left            =   1800
      TabIndex        =   58
      Top             =   2400
      Width           =   615
   End
   Begin VB.Line Line7 
      X1              =   6840
      X2              =   6600
      Y1              =   3840
      Y2              =   3840
   End
   Begin VB.Line Line6 
      X1              =   6840
      X2              =   6600
      Y1              =   3360
      Y2              =   3360
   End
   Begin VB.Line Line5 
      X1              =   6840
      X2              =   4080
      Y1              =   2880
      Y2              =   2880
   End
   Begin VB.Line Line4 
      X1              =   3240
      X2              =   6840
      Y1              =   7200
      Y2              =   7200
   End
   Begin VB.Line Line3 
      X1              =   1800
      X2              =   6840
      Y1              =   6240
      Y2              =   6240
   End
   Begin VB.Line Line2 
      X1              =   3120
      X2              =   6840
      Y1              =   2400
      Y2              =   2400
   End
   Begin VB.Line Line1 
      X1              =   2400
      X2              =   6840
      Y1              =   1440
      Y2              =   1440
   End
   Begin VB.Label Label11 
      Caption         =   "to"
      Height          =   255
      Left            =   2400
      TabIndex        =   49
      Top             =   1920
      Width           =   255
   End
   Begin VB.Label Label10 
      Caption         =   "on Port B with"
      Height          =   255
      Left            =   2400
      TabIndex        =   42
      Top             =   7680
      Width           =   1095
   End
   Begin VB.Label Label9 
      Caption         =   "on Port B"
      Height          =   255
      Left            =   2400
      TabIndex        =   39
      Top             =   7200
      Width           =   735
   End
   Begin VB.Label Label8 
      Caption         =   "ms between readings on Pin A"
      Height          =   255
      Left            =   3840
      TabIndex        =   29
      Top             =   3840
      Width           =   2175
   End
   Begin VB.Label Label7 
      Caption         =   "times with"
      Height          =   255
      Left            =   2400
      TabIndex        =   27
      Top             =   3840
      Width           =   735
   End
   Begin VB.Label Label6 
      Caption         =   "us between readings on Pin A"
      Height          =   255
      Left            =   3840
      TabIndex        =   24
      Top             =   3360
      Width           =   2175
   End
   Begin VB.Label Label5 
      Caption         =   "times with"
      Height          =   255

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -