你好:
非常感谢购买我们产品,3个功能是可以同时用的,虽然例子都是分开的,但是都是可以同时在一个工程里面用的,我附件给你提供一个最新的库,里面有用C#封装好的库,下面这段代码是C#或者设备信息的代码,希望能帮到你。- //Get Ginkgo Information
- ret = ControlI2C.VII_ReadBoardInfo(0, ref ControlI2C.I2C_Info);
- if (ret != ControlI2C.ERROR.SUCCESS)
- {
- Console.WriteLine("Get Ginkgo Information error!");
- return;
- }
- else
- {
- Console.WriteLine("Get Ginkgo Information :");
- Console.WriteLine(" ProductName : " + Encoding.Default.GetString(ControlI2C.I2C_Info.ProductName));
- Console.WriteLine(" FirmwareVersion : v" + String.Format("{0:D}.{1:D}.{2:D}", ControlI2C.I2C_Info.FirmwareVersion[1], ControlI2C.I2C_Info.FirmwareVersion[2], ControlI2C.I2C_Info.FirmwareVersion[3]));
- Console.WriteLine(" HardwareVersion : v" + String.Format("{0:D}.{1:D}.{2:D}", ControlI2C.I2C_Info.HardwareVersion[1], ControlI2C.I2C_Info.HardwareVersion[2], ControlI2C.I2C_Info.HardwareVersion[3]));
- Console.Write(" SerialNumber : ");
- for (int i = 0; i < 12; i++)
- {
- Console.Write(String.Format("{0:X2}", ControlI2C.I2C_Info.SerialNumber[i]));
- }
- Console.WriteLine("");
- }
复制代码 最新API库下载:
Ginkgo_USB-I2C_API_v2.0.0.2.rar
(85.05 KB, 下载次数: 69)
|