亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mainform.frm

?? cp2102 官方usb開發包
?? FRM
字號:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmMain 
   Caption         =   "Test Panel"
   ClientHeight    =   3240
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   9585
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3240
   ScaleWidth      =   9585
   StartUpPosition =   3  'Windows Default
   Visible         =   0   'False
   Begin VB.CheckBox chkP0B0 
      Caption         =   "0"
      Enabled         =   0   'False
      Height          =   255
      Left            =   1560
      Style           =   1  'Graphical
      TabIndex        =   21
      Top             =   2400
      Width           =   375
   End
   Begin VB.CheckBox chkP0B1 
      Caption         =   "1"
      Enabled         =   0   'False
      Height          =   255
      Left            =   1200
      Style           =   1  'Graphical
      TabIndex        =   20
      Top             =   2400
      Width           =   375
   End
   Begin VB.CheckBox chkP0B2 
      Caption         =   "2"
      Enabled         =   0   'False
      Height          =   255
      Left            =   840
      Style           =   1  'Graphical
      TabIndex        =   19
      Top             =   2400
      Width           =   375
   End
   Begin VB.CheckBox chkP0B3 
      Caption         =   "3"
      Enabled         =   0   'False
      Height          =   255
      Left            =   480
      Style           =   1  'Graphical
      TabIndex        =   18
      Top             =   2400
      Width           =   375
   End
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   240
      Top             =   3000
   End
   Begin VB.Frame Frame6 
      Caption         =   "Analog2"
      Height          =   975
      Left            =   4440
      TabIndex        =   10
      Top             =   1920
      Width           =   4455
      Begin MSComctlLib.ProgressBar pbAnalog2 
         Height          =   255
         Left            =   240
         TabIndex        =   26
         Top             =   240
         Width           =   3975
         _ExtentX        =   7011
         _ExtentY        =   450
         _Version        =   393216
         Appearance      =   1
         Max             =   255
         Scrolling       =   1
      End
      Begin VB.Label Label4 
         Caption         =   "Temperature"
         Height          =   255
         Left            =   240
         TabIndex        =   24
         Top             =   600
         Width           =   1095
      End
      Begin VB.Label lblAnalog2 
         Caption         =   "0"
         Height          =   255
         Left            =   1320
         TabIndex        =   12
         Top             =   600
         Width           =   975
      End
   End
   Begin VB.Frame Frame4 
      Caption         =   "Port 1"
      Height          =   1095
      Left            =   2280
      TabIndex        =   8
      Top             =   1800
      Width           =   1935
      Begin VB.CheckBox chkP1B3 
         Caption         =   "3"
         Height          =   255
         Left            =   360
         Style           =   1  'Graphical
         TabIndex        =   17
         Top             =   600
         Width           =   375
      End
      Begin VB.CheckBox chkP1B2 
         Caption         =   "2"
         Height          =   255
         Left            =   720
         Style           =   1  'Graphical
         TabIndex        =   16
         Top             =   600
         Width           =   375
      End
      Begin VB.CheckBox chkP1B1 
         Caption         =   "1"
         Height          =   255
         Left            =   1080
         Style           =   1  'Graphical
         TabIndex        =   14
         Top             =   600
         Width           =   375
      End
      Begin VB.CheckBox chkP1B0 
         Caption         =   "0"
         Height          =   255
         Left            =   1440
         Style           =   1  'Graphical
         TabIndex        =   13
         Top             =   600
         Width           =   375
      End
      Begin VB.Label Label1 
         Caption         =   "Bits (Press to Set)"
         Height          =   255
         Left            =   360
         TabIndex        =   15
         Top             =   240
         Width           =   1455
      End
   End
   Begin VB.Frame Frame3 
      Caption         =   "LEDs"
      Height          =   1095
      Left            =   2280
      TabIndex        =   3
      Top             =   240
      Width           =   1935
      Begin VB.CheckBox chkLED2 
         Caption         =   "LED 2"
         Height          =   255
         Left            =   480
         TabIndex        =   7
         Top             =   720
         Width           =   975
      End
      Begin VB.CheckBox chkLED1 
         Caption         =   "LED 1"
         Height          =   255
         Left            =   480
         TabIndex        =   6
         Top             =   360
         Width           =   1215
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "Port 0"
      Height          =   1095
      Left            =   240
      TabIndex        =   2
      Top             =   1800
      Width           =   1815
      Begin VB.Label Label2 
         Caption         =   "Bits"
         Height          =   255
         Left            =   240
         TabIndex        =   22
         Top             =   240
         Width           =   855
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "Buttons"
      Height          =   1095
      Left            =   240
      TabIndex        =   1
      Top             =   240
      Width           =   1815
      Begin VB.Shape cButton2 
         FillColor       =   &H00008000&
         Height          =   255
         Left            =   120
         Shape           =   3  'Circle
         Top             =   720
         Width           =   375
      End
      Begin VB.Shape cButton1 
         FillColor       =   &H00008000&
         Height          =   255
         Left            =   120
         Shape           =   3  'Circle
         Top             =   240
         Width           =   375
      End
      Begin VB.Label lblButton2 
         Caption         =   "Button 2"
         Height          =   255
         Left            =   600
         TabIndex        =   5
         Top             =   720
         Width           =   1095
      End
      Begin VB.Label lblButton1 
         Caption         =   "Button 1"
         Height          =   255
         Left            =   600
         TabIndex        =   4
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.CommandButton cmdExit 
      Caption         =   "Exit"
      Height          =   495
      Left            =   8040
      TabIndex        =   0
      Top             =   240
      Width           =   1215
   End
   Begin VB.Frame Frame5 
      Caption         =   "Analog1"
      Height          =   975
      Left            =   4440
      TabIndex        =   9
      Top             =   840
      Width           =   4455
      Begin MSComctlLib.ProgressBar pbAnalog1 
         Height          =   255
         Left            =   240
         TabIndex        =   25
         Top             =   240
         Width           =   3975
         _ExtentX        =   7011
         _ExtentY        =   450
         _Version        =   393216
         Appearance      =   1
         Max             =   255
         Scrolling       =   1
      End
      Begin VB.Label Label3 
         Caption         =   "Potentiometer"
         Height          =   255
         Left            =   240
         TabIndex        =   23
         Top             =   600
         Width           =   1095
      End
      Begin VB.Label lblAnalog1 
         Caption         =   "0"
         Height          =   255
         Left            =   1320
         TabIndex        =   11
         Top             =   600
         Width           =   975
      End
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub cmdExit_Click()
    
    'close use device and exit program
    SI_Close (hUSBDevice)
    End
    
End Sub

Private Sub Form_Unload(Cancel As Integer)

    'close usb device and exit program
    SI_Close (hUSBDevice)
    End
    
End Sub

Private Sub Timer1_Timer()

    'on each timer tick we will send out the data from the
    'program to the board and set the appropriate values to
    'the board then, we will read in the data from the board
    'and set the appropriate values to the program
    
    'set the first two bytes of the array to the led values
    IOBuf(0) = chkLED1.Value
    IOBuf(1) = chkLED2.Value

    Dim B0, B1, B2, B3
    Dim P1
    
    'bits for each of the bits represented in port 1
    B0 = chkP1B0.Value
    B1 = chkP1B1.Value * 2   'shift left 1
    B2 = chkP1B2.Value * 4   'shift left 2
    B3 = chkP1B3.Value * 8   'shift left 3
    P1 = (B0 + B1 + B2 + B3) 'or all of the bits together to get the byte value
    P1 = P1 And &HF          'and then with &h0F to get the low 4 bits
    IOBuf(2) = P1            'set the third element to this value to send out

    Dim BytesSucceed As Long
    Dim BytesWriteRequest As Long
    Dim BytesReadRequest As Long

    BytesSucceed = 0
    BytesWriteRequest = IOBufSize - 4
    BytesReadRequest = IOBufSize - 4
    
    'send data to the board
    Status = SI_Write(hUSBDevice, IOBuf(0), BytesWriteRequest, BytesSucceed, 0)
    
    If (BytesSucceed <> BytesWriteRequest) Or (Status <> SI_SUCCESS) Then
        MsgBox "Error writing to USB. Wrote " + Str(BytesSucceed) + " of " + Str(BytesWriteRequest) + " bytes. Application is aborting. Reset hardware and try again."
        End
    End If

    'clear out the iobuf and bytessucceed for the next read
    BytesSucceed = 0
    Call MemSet(IOBuf, 0, IOBufSize)

    'read data from the board
    Status = SI_Read(hUSBDevice, IOBuf(0), BytesReadRequest, BytesSucceed, 0)
    
    If (BytesSucceed <> BytesReadRequest) Or (Status <> SI_SUCCESS) Then
        MsgBox "Error writing to USB. Read " + Str(BytesSucceed) + " of " + Str(BytesReadRequest) + " bytes. Application is aborting. Reset hardware and try again."
        End
    End If
        
    'the first two elements have the button status
    If IOBuf(0) Then
        cButton1.FillStyle = 0
    Else
        cButton1.FillStyle = 1
    End If
    If IOBuf(1) Then
        cButton2.FillStyle = 0
    Else
        cButton2.FillStyle = 1
    End If
    
    Dim P0
    P0 = IOBuf(2) And &HF            'and the value with &h0F to get the low 4 bits
    chkP0B0.Value = P0 And &H1       'check first bit by anding with 1, and if it is true, set the check box
    chkP0B1.Value = (P0 \ 2) And &H1 'shift right 1, and check if its true, set the check box
    chkP0B2.Value = (P0 \ 4) And &H1 'shift right 2, and check if its true, set the check box
    chkP0B3.Value = (P0 \ 8) And &H1 'shift right 3, and check if its true, set the check box
    
    lblAnalog1.Caption = IOBuf(3) 'set each analog label to the corresponding value
    lblAnalog2.Caption = IOBuf(4)
    pbAnalog1.Value = IOBuf(3)    'set each analog graphic as well
    pbAnalog2.Value = IOBuf(4)
    
End Sub

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品精品国产色婷婷| 91成人国产精品| 久久久久久夜精品精品免费| 麻豆视频一区二区| 精品成人一区二区| 国产成人av电影在线观看| 国产亚洲福利社区一区| 99视频一区二区三区| 亚洲视频在线一区观看| 欧美色图天堂网| 精品在线你懂的| 中文字幕第一页久久| 在线观看亚洲一区| 久久精品久久综合| 日韩一区在线免费观看| 欧美性受xxxx| 韩日精品视频一区| 一区二区三区在线免费观看| 欧美日韩美少妇| 国产在线看一区| 日韩理论电影院| 日韩写真欧美这视频| 国产精品一区专区| 亚洲综合清纯丝袜自拍| 日韩欧美二区三区| 99麻豆久久久国产精品免费优播| 亚洲sss视频在线视频| 2020国产精品久久精品美国| 91亚洲永久精品| 麻豆精品一区二区三区| 日韩美女啊v在线免费观看| 欧美一级日韩一级| 99re8在线精品视频免费播放| 丝袜美腿高跟呻吟高潮一区| 欧美国产禁国产网站cc| 欧美精品免费视频| 97se亚洲国产综合自在线| 美日韩一级片在线观看| 亚洲欧美电影一区二区| 2024国产精品| 91麻豆精品国产无毒不卡在线观看 | 97久久人人超碰| 久久99久久精品| 亚洲午夜国产一区99re久久| 久久久久久黄色| 欧美一级在线观看| 欧美综合亚洲图片综合区| 国产精品亚洲一区二区三区妖精 | 亚洲午夜日本在线观看| 久久九九全国免费| 欧美一卡二卡在线观看| 在线观看网站黄不卡| 不卡影院免费观看| 国产精品一线二线三线| 久久激情五月激情| 五月综合激情婷婷六月色窝| 亚洲女爱视频在线| 国产精品久久久爽爽爽麻豆色哟哟 | 色噜噜狠狠成人网p站| 国产麻豆精品久久一二三| 天天色综合天天| 亚洲成a人v欧美综合天堂| 亚洲视频每日更新| 中文字幕在线不卡国产视频| 久久久噜噜噜久久人人看| 精品乱人伦一区二区三区| 在线综合亚洲欧美在线视频| 欧美日韩在线观看一区二区| 91黄色免费看| 一本色道a无线码一区v| 高清beeg欧美| 成人性视频网站| 国产91精品久久久久久久网曝门| 久久99在线观看| 经典三级在线一区| 狠狠色丁香九九婷婷综合五月| 麻豆国产91在线播放| 奇米在线7777在线精品| 日韩成人dvd| 香蕉影视欧美成人| 丝袜亚洲另类欧美| 久久精品免费看| 狠狠v欧美v日韩v亚洲ⅴ| 国产在线视频精品一区| 丁香婷婷综合色啪| www.日韩在线| 91同城在线观看| 93久久精品日日躁夜夜躁欧美| 99riav久久精品riav| 精品国精品国产| 日韩欧美一区在线观看| 精品国产精品一区二区夜夜嗨| 日韩午夜在线影院| 久久综合色天天久久综合图片| 国产亚洲福利社区一区| 自拍av一区二区三区| 亚洲18色成人| 久久99久久99精品免视看婷婷 | 欧美一区二区三区四区在线观看| 在线播放一区二区三区| 精品女同一区二区| 国产精品私房写真福利视频| 综合久久久久综合| 日韩制服丝袜av| 国产麻豆91精品| av欧美精品.com| 欧美精品在线一区二区三区| www日韩大片| 一区二区三区在线视频观看58| 秋霞影院一区二区| 国产69精品久久777的优势| 在线影视一区二区三区| 日韩视频免费直播| 国产精品超碰97尤物18| 亚洲不卡av一区二区三区| 国产在线视频不卡二| 91免费版pro下载短视频| 91精品国产综合久久久蜜臀粉嫩 | 国产白丝精品91爽爽久久| 色综合久久久久网| 日韩视频123| 亚洲免费电影在线| 蜜桃久久久久久| 91小宝寻花一区二区三区| 精品国产一区二区亚洲人成毛片| 国产精品网站一区| 美女脱光内衣内裤视频久久网站| 成人免费视频视频在线观看免费| 欧美日韩国产一级二级| 欧美国产97人人爽人人喊| 青草av.久久免费一区| 色婷婷精品大视频在线蜜桃视频| 欧美tickling挠脚心丨vk| 亚洲精品伦理在线| 国产成人av在线影院| 日韩片之四级片| 亚洲国产你懂的| 成a人片亚洲日本久久| 26uuu亚洲综合色欧美| 亚洲成人综合视频| 91麻豆国产香蕉久久精品| 久久蜜臀精品av| 老司机精品视频导航| 欧美在线一二三四区| 国产精品久久久久久亚洲毛片| 麻豆精品在线视频| 欧美一区二区三区免费大片| 亚洲一区二区三区免费视频| av电影在线不卡| 国产亚洲va综合人人澡精品| 免费成人美女在线观看.| 欧亚洲嫩模精品一区三区| 中文字幕不卡在线| 国产乱人伦精品一区二区在线观看 | 国产一区不卡精品| 精品久久久久一区二区国产| 香蕉乱码成人久久天堂爱免费| 日本精品免费观看高清观看| 国产精品久久久久久久岛一牛影视| 国内成+人亚洲+欧美+综合在线 | 欧美日韩国产一级片| 亚洲午夜免费电影| 欧美视频完全免费看| 伊人婷婷欧美激情| 91久久线看在观草草青青| 亚洲视频一区二区在线观看| 国产不卡视频在线播放| 久久综合视频网| 丰满亚洲少妇av| 中文字幕精品三区| gogogo免费视频观看亚洲一| 国产视频911| 国产suv一区二区三区88区| 国产亚洲精品7777| 菠萝蜜视频在线观看一区| 中文字幕一区二区三区视频| 成人久久久精品乱码一区二区三区| 国产欧美综合色| 99久久综合99久久综合网站| 国产精品高潮呻吟久久| 91色porny| 亚洲高清视频的网址| 666欧美在线视频| 精品一区二区三区在线播放视频| 亚洲精品一区二区三区蜜桃下载| 国产伦精品一区二区三区免费| 国产欧美一区二区精品婷婷| 成人免费看黄yyy456| 一区二区在线观看av| 这里只有精品电影| 国产一区二区三区免费播放| 亚洲国产精品国自产拍av| 色综合久久久网| 日韩成人免费在线| 国产欧美一区二区精品仙草咪| 在线观看亚洲精品视频| 精品一区二区在线视频| 国产精品美女久久久久久久| 欧美中文一区二区三区| 精品一区二区在线视频|