OpenMacroBoard.SDK 11.0.0-beta.1

This is a prerelease version of OpenMacroBoard.SDK.
dotnet add package OpenMacroBoard.SDK --version 11.0.0-beta.1
                    
NuGet\Install-Package OpenMacroBoard.SDK -Version 11.0.0-beta.1
                    
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="OpenMacroBoard.SDK" Version="11.0.0-beta.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenMacroBoard.SDK" Version="11.0.0-beta.1" />
                    
Directory.Packages.props
<PackageReference Include="OpenMacroBoard.SDK" />
                    
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 OpenMacroBoard.SDK --version 11.0.0-beta.1
                    
#r "nuget: OpenMacroBoard.SDK, 11.0.0-beta.1"
                    
#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 OpenMacroBoard.SDK@11.0.0-beta.1
                    
#: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=OpenMacroBoard.SDK&version=11.0.0-beta.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=OpenMacroBoard.SDK&version=11.0.0-beta.1&prerelease
                    
Install as a Cake Tool

What is OpenMacroBoard?

OpenMacroBoard (maintained by Christian Franzl) is a collection of .NET libraries (.NET 10+), that help you implement custom functionality for various macro boards mainly focusing on devices with key displays.

The OpenMacroBoard.SDK defines the common base types and logic for macro boards. The SDK by itself is not very useful on its own, because it doesn't implement any concrete devices.

The concrete device implementations (device providers) are in different libraries.

Quick Start

Create a new console project in Visual Studio (.NET 10+), add OpenMacroBoard.SDK as a reference and at least one device provider.

In this example we use

Once you added the NuGet packages copy-paste the following lines:

using OpenMacroBoard.SDK;
using OpenMacroBoard.SocketIO;  // for VirtualMacroBoard
using StreamDeckSharp;          // for StreamDeck

// create a device context (fluent API)
// and add listener for devices (device provider)
using var ctx = DeviceContext.Create()
    .AddListener<SocketIOBoardListener>()   // VirtualMacroBoard
    .AddListener<StreamDeckListener>()      // StreamDeck
    ;

Console.WriteLine("Waiting for a device... (press Ctrl+C to cancel)");
using var board = await ctx.OpenAsync();
Console.WriteLine("Device found.");
Console.WriteLine("1) Try to press some buttons on the device.");
Console.WriteLine("2) Press any key in this console to end the demo.");

// react to key press event by setting a random color
board.KeyStateChanged += (sender, arg) => board.SetKeyBitmap(arg.Key, GetRandomColorKey());

// Wait for a key press in the console window to exit
// the application and disconnect the device.
Console.ReadKey();

// Helper function to create a random color KeyBitmap
static KeyBitmap GetRandomColorKey()
{
    var r = GetRandomByte();
    var g = GetRandomByte();
    var b = GetRandomByte();

    return KeyBitmap.Create.FromRgb(r, g, b);
}

// Helper function to get a random byte
static byte GetRandomByte()
{
    return (byte)Random.Shared.Next(255);
}

Here is what the example looks like after pressing some keys: alternate text is missing from this package README image

Providers and supported devices

Providers are libraries that manage the communication to the macro boards. This abstraction is needed to allow third parties to implement devices without changes to the core functionality.

At the moment there are just two providers that are maintained by me.

StreamDeckSharp

First things first, StreamDeckSharp is not official software by Elgato, nor is it endorsed by them.

NuGet: StreamDeckSharp

Device Description
Stream Deck (original/legacy) 5 x 3
Stream Deck (MK2) 5 x 3
Stream Deck XL 8 x 4
Stream Deck Mini 3 x 2

Keep in mind that Elgato sometimes releases new revisions of their devices with different PIDs (USB product IDs) which might break compatibility. If you have a device like that, please open an issue on GitHub with the new PID.

OpenMacroBoard.SocketIO

NuGet: OpenMacroBoard.SocketIO

Device Description
VirtualBoard Software emulated board with arbitrary key configuration

Is device XYZ supported?

If I find the time I'd love to add more, but you can also implement one yourself by referencing OpenMacroBoard.SDK and writing a class that implements IObservable<DeviceStateReport>. This class can then be added as a device listener in a DeviceContext. If you want me to implement it, you can donate hardware (or the money so I can buy that specific hardware you want implemented) - just create a ticket and we talk about it 😉

Examples

You can find a lot of examples in our example collection

Fullscreen images

<img src="https://raw.githubusercontent.com/OpenMacroBoard/StreamDeckSharp/v11.0-beta.1/doc/images/lasershow.png" width="500" />

Play games

Play games on a macro board, for example minesweeper (also part of the example projects) <img src="https://raw.githubusercontent.com/OpenMacroBoard/StreamDeckSharp/v11.0-beta.1/doc/images/minesweeper.jpg" width="500" />

Videos

Demo video of the example
*The glitches you can see are already fixed.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on OpenMacroBoard.SDK:

Package Downloads
StreamDeckSharp

A simple .NET wrapper for StreamDeck (using OpenMacroBoard.SDK)

OpenMacroBoard.VirtualBoard

A virtual macro board for development

OpenMacroBoard.SocketIO

An IP-based device provider for OpenMacroBoard. Can be used to implement and interact with virtual and remote devices.

OpenMacroBoard.SDK.KeyBitmap.GDI

KeyBitmap factory extension methods for GDI+ (Windows only).

OpenMacroBoard.SDK.KeyBitmap.SkiaSharp

KeyBitmap factory extension methods for SkiaSharp: draw key images with text and shapes on Windows, Linux and macOS.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.0-beta.1 408 11/21/2026
10.0.0 1,461 6/19/2026
6.1.0 5,572 9/17/2025
6.0.0 10,117 3/3/2024
5.0.0 2,523 8/1/2023
4.0.0-preview 3,932 3/24/2022
3.0.0 8,772 3/11/2021
2.1.0 1,171 8/24/2020
2.0.0 4,928 6/5/2020
1.0.0 2,950 3/13/2020
0.4.0 3,214 12/31/2019
0.3.0 5,640 1/23/2019
0.2.1 1,246 8/25/2018
0.2.0 3,254 8/25/2018