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

📄 form1.frm

📁 JAPAN RTOS TOPPERS/JSP kernel 1.4 PreRelease simulation environment JSP kernel Windows simulation
💻 FRM
字号:
VERSION 5.00
Object = "{194B359F-594E-4EE4-A804-84723D1CF1C4}#1.0#0"; "device.dll"
Begin VB.Form Form1 
   Caption         =   "僨僶僀僗丒僔儈儏儗乕僞"
   ClientHeight    =   930
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4800
   LinkTopic       =   "Form1"
   ScaleHeight     =   930
   ScaleWidth      =   4800
   StartUpPosition =   3  'Windows 偺婛掕抣
   Begin VB.CommandButton Command2 
      Caption         =   "僀儀儞僩俀敪惗"
      Height          =   615
      Left            =   3120
      TabIndex        =   2
      Top             =   240
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "僀儀儞僩侾敪惗"
      Height          =   615
      Left            =   1575
      TabIndex        =   1
      Top             =   225
      Width           =   1455
   End
   Begin ATLDEVICELibCtl.DeviceControl DeviceControl1 
      Height          =   495
      Left            =   240
      OleObjectBlob   =   "Form1.frx":0000
      TabIndex        =   0
      Top             =   120
      Visible         =   0   'False
      Width           =   735
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
    DeviceControl1.Connect         '僨僶僀僗儅僱乕僕儍偲愙懕偡傞
    DeviceControl1.Map &H1000, 1   '0x1000斣抧偵1僶僀僩偺儗僕僗僞傪儅僢僾偡傞
End Sub

Private Sub Form_Unload(Cancel As Integer)
    DeviceControl1.Close   '僨僶僀僗儅僱乕僕儍偲偺愙懕傪夝彍偡傞
End Sub

Private Sub DeviceControl1_OnRead(ByVal address As Long, ByVal sz As Long)
    DeviceControl1.Value = 0       '撉傒弌偟梫媮傊偺墳摎
End Sub

Private Sub DeviceControl1_OnWrite(ByVal address As Long, ByVal sz As Long)
    Dim tmp As Integer
    tmp = DeviceControl1.Value      '彂偒崬傑傟偨僨乕僞偺撉傒弌偟
End Sub

Private Sub Command1_Click()
   DeviceControl1.RaiseInterrupt (1)  '妱崬傒敪惗
End Sub

Private Sub Command2_Click()
   DeviceControl1.RaiseInterrupt (2)  '妱崬傒敪惗
End Sub

⌨️ 快捷键说明

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