nanoFramework.Iot.Device.Ssd13xx
1.1.58.10097
Prefix Reserved
See the version list below for details.
dotnet add package nanoFramework.Iot.Device.Ssd13xx --version 1.1.58.10097
NuGet\Install-Package nanoFramework.Iot.Device.Ssd13xx -Version 1.1.58.10097
<PackageReference Include="nanoFramework.Iot.Device.Ssd13xx" Version="1.1.58.10097" />
paket add nanoFramework.Iot.Device.Ssd13xx --version 1.1.58.10097
#r "nuget: nanoFramework.Iot.Device.Ssd13xx, 1.1.58.10097"
// Install nanoFramework.Iot.Device.Ssd13xx as a Cake Addin #addin nuget:?package=nanoFramework.Iot.Device.Ssd13xx&version=1.1.58.10097 // Install nanoFramework.Iot.Device.Ssd13xx as a Cake Tool #tool nuget:?package=nanoFramework.Iot.Device.Ssd13xx&version=1.1.58.10097
SSD13xx & SSH1106 OLED display family
The SSD1306/SSH1106 are a single-chip CMOS OLED/PLED driver with controllers for organic/polymer light emitting diode dot-matrix graphic display system. It consists of 128 segments and 64 commons. This IC is designed for Common Cathode type OLED panel.
Documentation
Related Devices
- Adafruit PiOLED - 128x32 Monochrome OLED Add-on for Raspberry Pi
- HiLetgo 1.3" SPI 128x64 SSH1106 OLED LCD Display LCD
- SunFounder 0.96" Inch Blue I2C IIC Serial 128x64 OLED LCD LED SSD1306 Modul
- Diymall 0.96" Inch Blue and Yellow I2c IIC Serial Oled LCD LED Module 12864 128X64 for Arduino Display Raspberry PI 51 Msp420 Stim32 SCR
Board
Binding Notes
This binding currently only supports commands and raw data. Eventually, the plan is to create a graphics library that can send text and images to the device. So this library is just a start and you'll find in the sample more advance commands.
The following connection types are supported by this binding.
- I2C
- SPI
Usage notes
There are two groups of drawing methods.
Various specialized drawing methods allowing to draw on screen pixel-by-pixel, like:
DrawPixel(...)
: draws one pixelDrawHorizontalLine(...)
: draws a horizontal lineDrawVerticalLine(...)
: draws a vertical lineDrawFilledRectangle(...)
: draws a filled rectangleDrawBitmap(...)
: draws a bitmapDrawString(...)
: draws a string with preset font
Using these methods you do not need to care about any technique the driver uses to display your drawing instructions.
Methods allowing to modify screen content by blocks of internal representation (screen buffer), like:
DrawDirectAligned(...)
: overwrites screen buffer with given contentClearDirectAligned(...)
: clears out (with 0x00) given part of screen buffer
These methods allow faster (~100 times) display access but with some constraints.
- bitmaps handed over here must be in appropriate format (see SSD13xx docs for "GDDRAM" and "Horizontal addressing mode").
- no bit operations occure with existing buffer data (with pixels drawn via other means), the new data will overwrite the pixels "below" newly drawed content.
- the "y" coordinate and the bitmap height must be byte aligned with screen buffer (again, see above docs)
The use of two groups can be freely mixed (e.g. display text via DrawString(...)
and displaying an image below via DrawDirectAligned(...)
)
Examples for 1. can be found in samples
folder.
Example for 2. follows here.
// There are superb online helpers like the one below which are able to
// create an appropriate byte array from an image in code use ready format.
// https://www.mischianti.org/images-to-byte-array-online-converter-cpp-arduino/
// On the site above use these settings to get bytes needed here:
// - "plain bytes"
// - "vertical - 1 bit per pixel"
var buffer = new byte[] { ... };
var width = 16;
var height = 16;
// instantiation example
var ssd1306 = new Ssd1306(
I2cDevice.Create(
new I2cConnectionSettings(
1,
Ssd1306.DefaultI2cAddress,
I2cBusSpeed.FastMode)),
Ssd13xx.DisplayResolution.OLED128x64);
// this line sends the image data to the screen
ssd1306.DrawDirectAligned(x, y, width, height, buffer);
// this one wipes its place to blank
ssd1306.ClearDirectAligned(x, y, width, height);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
- nanoFramework.CoreLibrary (>= 1.12.0)
- nanoFramework.System.Device.I2c (>= 1.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on nanoFramework.Iot.Device.Ssd13xx:
Package | Downloads |
---|---|
nanoFramework.MagicBit
This package includes nanoFramework.MagicBit, a board package library for MagicBit in .NET nanoFramework C# projects. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.3.510 | 95 | 12/16/2024 |
1.3.487 | 239 | 10/23/2024 |
1.3.445 | 408 | 8/28/2024 |
1.3.384 | 499 | 6/14/2024 |
1.3.374 | 181 | 5/29/2024 |
1.3.366 | 178 | 5/17/2024 |
1.3.362 | 174 | 5/15/2024 |
1.3.350 | 226 | 4/15/2024 |
1.3.328 | 262 | 3/22/2024 |
1.3.326 | 181 | 3/16/2024 |
1.3.250 | 584 | 11/10/2023 |
1.3.143 | 1,356 | 5/26/2023 |
1.3.130 | 313 | 5/16/2023 |
1.3.127 | 251 | 5/12/2023 |
1.3.122 | 153 | 5/11/2023 |
1.3.116 | 252 | 5/10/2023 |
1.3.111 | 247 | 5/3/2023 |
1.3.106 | 267 | 4/20/2023 |
1.3.87 | 718 | 3/17/2023 |
1.3.83 | 415 | 3/13/2023 |
1.3.26 | 1,608 | 1/5/2023 |
1.3.17 | 504 | 12/28/2022 |
1.2.158 | 929 | 11/13/2022 |
1.2.153 | 644 | 11/5/2022 |
1.2.141 | 1,683 | 10/25/2022 |
1.2.3 | 8,119 | 7/9/2022 |
1.1.113.2032 | 2,914 | 6/23/2022 |
1.1.58.10097 | 1,755 | 5/23/2022 |
1.1.1 | 596 | 4/14/2022 |
1.0.300 | 493 | 4/2/2022 |
1.0.288-preview.113 | 140 | 3/25/2022 |
1.0.288-preview.48 | 281 | 2/4/2022 |
1.0.288-preview.20 | 165 | 1/27/2022 |
1.0.281 | 523 | 1/17/2022 |
1.0.259 | 323 | 12/9/2021 |
1.0.212 | 364 | 10/13/2021 |
1.0.156 | 337 | 9/1/2021 |
1.0.155 | 346 | 8/31/2021 |
1.0.138 | 364 | 7/18/2021 |
1.0.136 | 379 | 7/17/2021 |
1.0.134 | 179 | 7/15/2021 |
1.0.133 | 192 | 7/14/2021 |
1.0.131 | 167 | 7/8/2021 |
1.0.130 | 197 | 7/6/2021 |
1.0.129 | 171 | 7/6/2021 |
1.0.125 | 203 | 7/5/2021 |
1.0.121 | 208 | 6/29/2021 |
1.0.120 | 193 | 6/29/2021 |
1.0.119 | 231 | 6/28/2021 |
1.0.118 | 223 | 6/20/2021 |
1.0.110 | 236 | 6/9/2021 |
1.0.109 | 167 | 6/8/2021 |
1.0.106 | 203 | 6/1/2021 |
1.0.104 | 263 | 5/29/2021 |
1.0.71 | 207 | 5/26/2021 |