const int devRFID = 5; const int devIButton = 6; const int devCD6 = 0x600; //9位vfd const int devCD7 = 0x700; const int devCD8 = 0x800; const int devCD9 = 0x900; //液晶显示屏32*144 const int devCD10 = 0xa00; //液晶显示屏65*132 const int devCD13 = 0xd00; //6+8段码显示 显示 6 + 8 字符:41 42 43 44 45 46 31 32 33 34 35 36 37 38 const int cmdCD9Off = 0x901; //背光开 const int cmdCD9On = 0x902; // 关 const int cmdCD9Clear = 0x903; //清屏 const int cmdCD9All = 0x904; //满屏 const int cmdCD6Clear = 0x603; const int cmdCD7Clear = 0x703; const int cmdCD8Clear = 0x803; const int cmdCD9Off = 0x901; const int cmdCD9On = 0x902; const int cmdCD9Clear = 0x903; const int cmdCD9All = 0x904; const int cmdCD10Off = 0xa01; const int cmdCD10On = 0xa02; const int cmdCD10Clear = 0xa03; const int cmdCD10All = 0xa04; const int cmdCD13Clear = 0xd03; //初始化 [DllImport("AclasDevices.dll")] public static extern void AclasDevice_Initialize(); [DllImport("AclasDevices.dll")] public static extern void AclasDevice_Finalize(); //客显 如32*144清屏 nCMD:cmdCD9Clear; [DllImport("AclasDevices.dll")] public static extern void AclasDevice_CustomerDisplayCMD(Int32 nCMD); //客显 如32*144显示 123 nDevice: devCD9 ; byte[]:0x31 0x32 0x33 ; [DllImport("AclasDevices.dll")] public static extern void AclasDevice_WriteBytes(int nDevice, byte[] bytes); //RFID IBUTTON public delegate void ASDSOnDataEvent(IntPtr Data, Int32 nSize); //回调 [DllImport("AclasDevices.dll")] public static extern void AclasDevice_ReadDevice(int nDeviceCMD, ASDSOnDataEvent OnDataEvent);