portinterop.cs
来自「source led giao tiep qua cong LPT」· CS 代码 · 共 22 行
CS
22 行
/* -----------------------------------------------------------------
*
* LED initialization code written by Levent S.
* E-mail: ls@izdir.com
*
* This code is provided without implied warranty so the author is
* not responsible about damages by the use of the code.
*
* You can use this code for any purpose even in any commercial
* distributions by referencing my name.
*
* ! Don't remove or alter this notice in any distribution !
*
* -----------------------------------------------------------------*/
using System;
using System.Runtime.InteropServices;
public class PortAccess
{
[DllImport("inpout32.dll", EntryPoint="Out32")]
public static extern void Output(int adress, int value);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?