Sang.IoT.SSD1306
1.2.3
.NET 6.0
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions |
---|---|
.NET | net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- SkiaSharp.NativeAssets.Linux.NoDependencies (>= 2.88.0)
- System.Device.Gpio (>= 2.1.0)
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.3 | 318 | 6/26/2022 |