Meadow.Foundation.Displays.Silk 1.11.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Meadow.Foundation.Displays.Silk --version 1.11.0
NuGet\Install-Package Meadow.Foundation.Displays.Silk -Version 1.11.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="Meadow.Foundation.Displays.Silk" Version="1.11.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Meadow.Foundation.Displays.Silk --version 1.11.0
#r "nuget: Meadow.Foundation.Displays.Silk, 1.11.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 Meadow.Foundation.Displays.Silk as a Cake Addin
#addin nuget:?package=Meadow.Foundation.Displays.Silk&version=1.11.0

// Install Meadow.Foundation.Displays.Silk as a Cake Tool
#tool nuget:?package=Meadow.Foundation.Displays.Silk&version=1.11.0

Meadow.Foundation.Displays.Silk

Display driver for Meadow using Silk.NET and SkiaSharp

The Meadow.Silk library is included in the Meadow.Foundation.Displays.Silk nuget package and is designed for the Wilderness Labs Meadow .NET IoT platform.

This driver is part of the Meadow.Foundation peripherals library, an open-source repository of drivers and libraries that streamline and simplify adding hardware to your C# .NET Meadow IoT applications.

For more information on developing for Meadow, visit developer.wildernesslabs.co.

To view all Wilderness Labs open-source projects, including samples, visit github.com/wildernesslabs.

Installation

You can install the library from within Visual studio using the the NuGet Package Manager or from the command line using the .NET CLI:

dotnet add package Meadow.Foundation.Displays.Silk

Usage

public class Program 
{
static SilkDisplay? display;
static MicroGraphics graphics = default!;

public static void Main()
{
    Initialize();
    Run();

    Thread.Sleep(Timeout.Infinite);
}

public static void Initialize()
{
    display = new SilkDisplay(640, 480, displayScale: 1f);

    graphics = new MicroGraphics(display)
    {
        CurrentFont = new Font16x24(),
        Stroke = 1
    };
}

public static void Run()
{
    graphics.Clear();

    graphics.DrawText(10, 10, "Silk.NET", Color.White);

    graphics.DrawText(10, 40, "1234567890!@#$%^&*(){}[],./<>?;':", Color.LawnGreen);
    graphics.DrawText(10, 70, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", Color.Cyan);
    graphics.DrawText(10, 100, "abcdefghijklmnopqrstuvwxyz", Color.Yellow);
    graphics.DrawText(10, 130, "Temp: 21.5°C", Color.Orange);

    graphics.DrawTriangle(10, 220, 50, 260, 10, 260, Color.Red);
    graphics.DrawRectangle(20, 185, 80, 40, Color.Yellow, false);
    graphics.DrawCircle(50, 240, 40, Color.Blue, false);

    graphics.Show();

    display!.Run();
}
}

How to Contribute

Need Help?

If you have questions or need assistance, please join the Wilderness Labs community on Slack.

About Meadow

Meadow is a complete, IoT platform with defense-grade security that runs full .NET applications on embeddable microcontrollers and Linux single-board computers including Raspberry Pi and NVIDIA Jetson.

Build

Use the full .NET platform and tooling such as Visual Studio and plug-and-play hardware drivers to painlessly build IoT solutions.

Connect

Utilize native support for WiFi, Ethernet, and Cellular connectivity to send sensor data to the Cloud and remotely control your peripherals.

Deploy

Instantly deploy and manage your fleet in the cloud for OtA, health-monitoring, logs, command + control, and enterprise backend integrations.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Meadow.Foundation.Displays.Silk:

Package Downloads
Meadow.Linux

Linux .NET libraries for Wilderness Labs Meadow

Meadow.Windows

An implementation of the Meadow software stack for Windows targets

Meadow.Mac

An implementation of the Meadow software stack for Apple Macintosh targets

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.11.0.4-beta 0 5/21/2024
1.11.0.3-beta 52 5/15/2024
1.11.0.2-beta 87 5/9/2024
1.11.0.1-beta 87 5/8/2024
1.11.0 207 4/30/2024