PAP3N-DOTNET
0.0.2
See the version list below for details.
dotnet add package PAP3N-DOTNET --version 0.0.2
NuGet\Install-Package PAP3N-DOTNET -Version 0.0.2
<PackageReference Include="PAP3N-DOTNET" Version="0.0.2" />
<PackageVersion Include="PAP3N-DOTNET" Version="0.0.2" />
<PackageReference Include="PAP3N-DOTNET" />
paket add PAP3N-DOTNET --version 0.0.2
#r "nuget: PAP3N-DOTNET, 0.0.2"
#:package PAP3N-DOTNET@0.0.2
#addin nuget:?package=PAP3N-DOTNET&version=0.0.2
#tool nuget:?package=PAP3N-DOTNET&version=0.0.2
This library allows you to connect to Winctrl 737 MCP programmatically to:
- Read status of button presses by subscribing to change events
- Set each LED on or off
- Display text on the 7 segment displays with support for decimal points and special features like +/- symbols on vertical speedi indicator, etc
- Control the A/T Solenoid same way as an LED (ie case 2)
This has not been battle tested and Im not 100% sure if it will work with all versions of PAP3N out there as I only can test on mine, but you can adapt and change the code as needed, or send the device to me along with a case of beer 😉
How was this done?
Install Wireshark
Observe what reports are sent between your machine and the device, as you play around with settings Winctrl's SimAppPro. For example, I found that:
Displays are controlled as a single 128 byte report/package sent to the device. Inside it are bit encoded (that is each segment corresponds to some bit) displays and decimal points
Button presses are sent as a single report, where each button is sent as a bit somewhere in the report (see the code for reference)
Position of rotrary encoders is sent as a 16 bit counters and individual button presses; I only tap into the counters.
Provided example code connects to the device and demonstrates most of the functionality of how to process input and send output.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- HidSharp (>= 2.6.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.