Meow.DGLablib
1.0.0
dotnet add package Meow.DGLablib --version 1.0.0
NuGet\Install-Package Meow.DGLablib -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Meow.DGLablib" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meow.DGLablib" Version="1.0.0" />
<PackageReference Include="Meow.DGLablib" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Meow.DGLablib --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Meow.DGLablib, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Meow.DGLablib&version=1.0.0
#tool nuget:?package=Meow.DGLablib&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CoyoteLibCSharp
郊狼控制库 C#[.NET]版本 (非跨平台/仅限Windows) (目前只有V3)
基础使用方式
static async Task Main(string[] args)
{
Console.WriteLine("Scanning for Coyote devices...");
List<CoyoteDeviceV3> devices = await CoyoteDeviceV3.Scan(); //通用的扫描方法
if (devices.Count == 0)
{
Console.WriteLine("No Coyote devices found.");
return;
}
Console.WriteLine($"Found {devices.Count} Coyote device(s):");
for (int i = 0; i < devices.Count; i++)
{
Console.WriteLine($"{i + 1}. {devices[i].Name}");
}
var coyoteDevice = devices[0]; //选择一个对的
coyoteDevice.SetWaveBFAsync(new WaveformBF(200)).Wait(); //设置最大幅值 (BF命令)
coyoteDevice.Start(); //启动郊狼输出
//coyoteDevice.NotificationReceived += (s, e) => //全局通知回调
//{
// Console.WriteLine($"Notification received: {BitConverter.ToString(e)}");
//};
//coyoteDevice.B1MessageReceived += (s, e) => //B1通知回调
//{
// Console.WriteLine($"Number:{s}, intA/B [{e[0]}][{e[1]}]");
//};
Console.WriteLine($"Connecting to {coyoteDevice.Name}...");
Console.WriteLine($"Battery level: {coyoteDevice.BatteryLevel}%"); //读取电池电量
// Example: Set waveform
WaveformV3 waveform = new(150, [100, 100, 100, 100], [60, 60, 60, 60]); //仅输出到A通道的波形
WaveformV3 zeroform = new(); //零幅值波形
Console.WriteLine("Press A / B to change waveform or ESC to stop");
while (true)
{
switch (Console.ReadKey().Key)
{
case ConsoleKey.A:
Console.WriteLine("set to wave");
coyoteDevice.WaveNow = waveform;
break;
case ConsoleKey.B:
Console.WriteLine("set to zero");
coyoteDevice.WaveNow = zeroform;
break;
case ConsoleKey.Escape: return;
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0-windows10.0.26100 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0-windows10.0.26100
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 132 | 4/3/2025 |