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

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

?? mainform.frm

?? usb上位機通信程序
?? FRM
字號:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmMain 
   Caption         =   "USB Test"
   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
    F32x_Close (hUSBDevice)
    End
    
End Sub

Private Sub Form_Unload(Cancel As Integer)

    'close usb device and exit program
    F32x_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 = F32x_Write(hUSBDevice, IOBuf(0), BytesWriteRequest, BytesSucceed)
    
    If (BytesSucceed <> BytesWriteRequest) Or (Status <> F32x_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 = F32x_Read(hUSBDevice, IOBuf(0), BytesReadRequest, BytesSucceed)
    
    If (BytesSucceed <> BytesReadRequest) Or (Status <> F32x_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一区二区三区免费野_久草精品视频
欧美电影免费观看完整版| 欧美影院午夜播放| 欧美久久久一区| 中文字幕在线一区免费| 极品少妇xxxx精品少妇偷拍 | 一区二区日韩av| 国产中文字幕精品| 91精品欧美综合在线观看最新 | 亚洲精品一区二区三区影院 | 国产精品国产a| 激情久久久久久久久久久久久久久久| 欧美天天综合网| 综合欧美一区二区三区| 国产不卡一区视频| 日韩精品资源二区在线| 午夜精品久久久久久久久| 色视频欧美一区二区三区| 国产精品久久夜| 丁香另类激情小说| 久久久久久免费| 蜜桃av一区二区在线观看| 欧美日韩aaaaa| 亚洲午夜成aⅴ人片| 91麻豆免费在线观看| 国产欧美精品一区二区色综合朱莉| 欧美aaa在线| 欧美二区三区的天堂| 亚洲.国产.中文慕字在线| 欧美一区二区三区在线| 99re6这里只有精品视频在线观看| 久久久精品日韩欧美| 国产在线一区观看| 精品成人一区二区三区四区| 蜜臀av一区二区| 日韩美女主播在线视频一区二区三区| 午夜av一区二区| 91精品久久久久久久久99蜜臂| 午夜婷婷国产麻豆精品| 欧美日韩成人在线| 日韩av二区在线播放| 欧美一区二区三区成人| 免费看日韩精品| 日韩视频123| 久久99久久精品| 精品国产露脸精彩对白| 国产做a爰片久久毛片| 久久影院午夜论| 成人动漫视频在线| 自拍偷自拍亚洲精品播放| 色一区在线观看| 亚洲va欧美va天堂v国产综合| 欧美日韩美女一区二区| 免费在线一区观看| 久久久五月婷婷| 丰满岳乱妇一区二区三区 | 欧美日韩精品欧美日韩精品一综合| 亚洲伊人色欲综合网| 欧美老肥妇做.爰bbww视频| 日韩电影在线观看电影| 精品国产免费一区二区三区香蕉| 国产高清精品在线| 中文字幕视频一区| 欧美综合天天夜夜久久| 五月天亚洲婷婷| 精品成人佐山爱一区二区| 成人免费av资源| 一区二区三区欧美| 91精品免费在线观看| 国产一区二区h| 亚洲免费av高清| 日韩小视频在线观看专区| 国产麻豆精品在线| 亚洲色图在线播放| 欧美一区二区视频观看视频| 国产精品正在播放| 亚洲人成精品久久久久| 欧美精品久久99久久在免费线| 久久66热偷产精品| 亚洲免费观看高清完整版在线观看熊| 欧美人与性动xxxx| 国产一区二区福利视频| 亚洲精品久久久久久国产精华液| 欧美精品tushy高清| 国产大陆a不卡| 亚洲一区二区三区三| wwww国产精品欧美| 一本一本久久a久久精品综合麻豆| 人妖欧美一区二区| 国产精品久久久久久久久久久免费看 | 美女脱光内衣内裤视频久久影院| 久久久久亚洲综合| 欧美性xxxxxx少妇| 狠狠色丁香婷婷综合| 亚洲卡通欧美制服中文| 欧美大片一区二区| 色综合久久中文字幕综合网| 毛片av一区二区| 亚洲男人的天堂av| 精品久久五月天| 欧美亚洲一区二区在线| 国产麻豆9l精品三级站| 亚洲五码中文字幕| 中文字幕av一区二区三区高 | 国产精品自拍在线| 亚洲成人激情av| 亚洲国产成人自拍| 欧美一区二区三区视频在线| 99国产精品一区| 国产自产高清不卡| 日韩精品免费视频人成| 成人免费视频在线观看| 欧美大片拔萝卜| 欧美日韩黄视频| 91网上在线视频| 国产成人精品午夜视频免费| 奇米影视在线99精品| 一区二区三区国产精华| 国产欧美视频一区二区三区| 日韩一区二区三区视频| 欧美视频中文字幕| 91视频在线观看| 国产91在线看| 久久91精品久久久久久秒播| 日韩影视精彩在线| 亚洲一区在线视频| 中文字幕一区二区日韩精品绯色| 久久一区二区三区四区| 欧美一级专区免费大片| 欧美日韩在线直播| 91视频国产观看| av亚洲产国偷v产偷v自拍| 国产麻豆一精品一av一免费| 久久精品国产99国产| 午夜电影网亚洲视频| 亚洲五月六月丁香激情| 一区二区三区四区激情| 1区2区3区精品视频| 欧美国产精品久久| 国产午夜亚洲精品羞羞网站| 精品免费99久久| 欧美电视剧在线观看完整版| 欧美精品在线观看播放| 欧美视频一区二区三区四区 | 91成人免费网站| 91免费精品国自产拍在线不卡| a美女胸又www黄视频久久| 国产精品99久久久久| 国产一区二区影院| 国产一区二区三区在线看麻豆| 美日韩黄色大片| 美女视频黄免费的久久 | 麻豆精品在线播放| 免费观看在线综合| 久久se精品一区精品二区| 精品一区二区在线观看| 欧美一区二区三区在线视频| 综合欧美一区二区三区| 国产欧美日韩精品a在线观看| 国产午夜亚洲精品羞羞网站| 国产婷婷色一区二区三区四区| 久久久精品一品道一区| 久久久99精品免费观看| 中文文精品字幕一区二区| 中文字幕av资源一区| 1024成人网色www| 一区二区三区四区精品在线视频| 亚洲小说春色综合另类电影| 亚洲成人免费av| 日韩二区三区四区| 黄色小说综合网站| 成人在线视频一区| 色婷婷综合久久| 欧美日韩黄视频| 精品入口麻豆88视频| 久久精品视频网| 国产精品久久久久国产精品日日| 亚洲欧美一区二区不卡| 亚洲综合久久av| 蜜桃av一区二区在线观看 | 亚洲成人免费av| 精品亚洲porn| 成人av电影在线网| 在线观看三级视频欧美| 欧美疯狂做受xxxx富婆| 亚洲精品在线一区二区| 国产精品传媒在线| 五月天精品一区二区三区| 国产在线精品一区二区不卡了| 成人美女在线观看| 欧美特级限制片免费在线观看| 日韩视频在线一区二区| 欧美激情艳妇裸体舞| 一区二区三区视频在线看| 免费一级片91| 成人黄色av电影| 欧美片网站yy| 国产亚洲成年网址在线观看| 亚洲综合图片区| 经典三级视频一区| 日本伦理一区二区|