RadiantPi.Lumagen 1.1.0

dotnet add package RadiantPi.Lumagen --version 1.1.0
NuGet\Install-Package RadiantPi.Lumagen -Version 1.1.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="RadiantPi.Lumagen" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RadiantPi.Lumagen --version 1.1.0
#r "nuget: RadiantPi.Lumagen, 1.1.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.
// Install RadiantPi.Lumagen as a Cake Addin
#addin nuget:?package=RadiantPi.Lumagen&version=1.1.0

// Install RadiantPi.Lumagen as a Cake Tool
#tool nuget:?package=RadiantPi.Lumagen&version=1.1.0

RadiantPi.Lumagen

RadianceProClient enables control of a Lumagen RadiancePro over a RS-232 connection. The library is platform agnostic and works on Windows or Linux, including on a Raspberry Pi.

Run the dotnet command from your project folder to add the RadiantPi.Lumagen assembly:

dotnet add package RadiantPi.Lumagen

Find a description of the latest changes in the release notes.

RadiancePro Setup

RadianceProClient requires the Lumagen RadiancePro to have Echo enabled:

  • MENU → Other → I/O Setup → RS-232 Setup → Echo → On

As well as report mode changes set to Fullv4:

  • MENU → Other → I/O Setup → RS-232 Setup → Report mode changes → Fullv4

Sample: Show Hello World

Use the ShowMessageAsync() to show a message on the display.

// initialize client
using var client = new RadianceProClient(new RadianceProClientConfig {
    PortName = "/dev/ttyUSB0",
    BaudRate = 9600
});

// show message
await client.ShowMessageAsync("Hello World!!!", 5);

Sample: Listen for events

Use DisplayModeChanged to listen to events, such as input or content changes.

// hook-up event handler
client.DisplayModeChanged += ShowDisplayMode;

// wait until the enter key is pressed
Console.ReadLine();

// remove event handler
client.DisplayModeChanged -= ShowDisplayMode;

// function acting on events
void ShowDisplayMode(object? sender, DisplayModeChangedEventArgs args) {
    Console.WriteLine("=== DISPLAY MODE ===");
    Console.WriteLine(JsonSerializer.Serialize(args.DisplayMode, new JsonSerializerOptions {
        WriteIndented = true
    }));
}

License

This application is distributed under the GNU Affero General Public License v3.0 or later.

Copyright (C) 2020-2021 - Steve G. Bjorg

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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. 
Compatible target framework(s)
Additional computed target framework(s)
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.1.0 331 10/26/2021
1.0.0 251 10/26/2021