﻿在使用之前，要先安装HidSharp，方法如下：
运行命令行，然后CD到当前目录，
运行如下命令：dotnet add package HidSharp --version 2.1.0


【注意】
如果是在安卓上运行，需要配置权限：
Here is an Android example of the device_filter.xml file on Android (This is a resource file found at Resources/xml). Note these are the same devices as above written in decimal instead of hex.

<?xml version="1.0" encoding="utf-8"?>
<resources>
  <usb-device vendor-id="13961" product-id="34658" />
</resources>