Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Example module Microsoft.PowerShell.IoT.SSD1306

This PowerShell module is for working with small I2C OLED displays based on SSD1306 driver chip.

Hardware setup

There are many versions of small OLED displays; in this example we'll use a 128x64 version based on I2C interface.

Wiring diagram with Raspberry Pi 3 is like this:


Software setup

Install PowerShell Core on Raspberry Pi

Installation instructions can be found here.

Enable I2C interface on Raspberry Pi

  1. sudo raspi-config
  2. 5 Interfacing options
  3. P5 I2C
  4. Would you like ARM I2C interface to be enabled -> Yes

Start Powershell and install modules

sudo pwsh
Install-Module -Name Microsoft.PowerShell.IoT
git clone
Import-Module ./PowerShell-IoT/Examples/Microsoft.PowerShell.IoT.SSD1306

Run example

PS /home/pi> New-OledDisplay | Set-OledText -Value "Hello from PowerShell"
You can’t perform that action at this time.