Sang.IoT.SSD1306 1.2.3

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

// Install Sang.IoT.SSD1306 as a Cake Tool
#tool nuget:?package=Sang.IoT.SSD1306&version=1.2.3

Sang.IoT.SSD1306

.NET library to use SSD1306-based 128x64 pixel OLED displays with a IoT device.Passed the test on the Jetson nano device.

.NET 类库,用于驱动 IOT 设备基于 SSD1306 分辨率 128*64 的 OLED 显示器,已在 Jetson Nano 设备上测试通过。

Instructions:

Step 1

Create a new .NET Console App

dotnet new console -o i2c_oled
Step 2

Add the Sang.IoT.SSD1306 to the project.

dotnet add package Sang.IoT.SSD1306
Step 3

Replace the contents of Program.cs with the following code:

using Sang.IoT.SSD1306;

using (var oled = new SSD1306_128_64(1)) {
    oled.Begin();
    // set data to oled
    byte[] c = new byte[128*64]{...};
    oled.SetBuffer(c);
    oled.Display();
}

Display Image

using Sang.IoT.SSD1306;

using (var oled = new SSD1306_128_64(1)) {
    oled.Begin();
    oled.Image("assets/test.png");
    oled.Display();
}

Clear

Use oled.Clear();.

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. 
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.4 96 3/2/2024
1.2.3 544 6/26/2022