TelemetrixCS 1.2.0

dotnet add package TelemetrixCS --version 1.2.0
                    
NuGet\Install-Package TelemetrixCS -Version 1.2.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="TelemetrixCS" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TelemetrixCS" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="TelemetrixCS" />
                    
Project file
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 TelemetrixCS --version 1.2.0
                    
#r "nuget: TelemetrixCS, 1.2.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.
#:package TelemetrixCS@1.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TelemetrixCS&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=TelemetrixCS&version=1.2.0
                    
Install as a Cake Tool

TelemetrixCS

A C# client library for communicating with Arduino boards running the Telemetrix4Arduino firmware over a serial connection.

Based on the original Python Telemetrix library by Alan Yorinks.

Features

  • Auto COM-port detection or manual port specification
  • Digital output (SetPinModeDigitalOutput / DigitalWrite)
  • Digital input with callbacks (SetPinModeDigitalInput / SetPinModeDigitalInputPullup)
  • Analog output / PWM (SetPinModeAnalogOutput / AnalogWrite)
  • Analog input with callbacks and configurable differential (SetPinModeAnalogInput)
  • Per-pin and global reporting control
  • Analog scan interval tuning
  • Clean shutdown via IDisposable

Installation

dotnet add package TelemetrixCS

Quick Start

using TelemetrixCS;

// Auto-detect Arduino on any COM port
using var board = new Telemetrix();

// Blink the built-in LED
board.SetPinModeDigitalOutput(pin: 13);
board.DigitalWrite(pin: 13, value: 1);
Thread.Sleep(1000);
board.DigitalWrite(pin: 13, value: 0);

// Read a button with a callback
board.SetPinModeDigitalInputPullup(pin: 2, callback: data =>
{
    Console.WriteLine($"Pin {data.Pin} = {data.Value}");
});

// Read a potentiometer on A0
board.SetPinModeAnalogInput(pin: 0, differential: 10, callback: data =>
{
    Console.WriteLine($"A{data.Pin} = {data.Value}");
});

Thread.Sleep(5000);
// Shutdown is called automatically by 'using'

Requirements

License

GNU AGPL Version 3 — see LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.2.0 133 3/5/2026
1.1.0 116 3/5/2026
1.0.0 129 3/4/2026