Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
Microsoft.PowerShell.IoT.SSD1306.psd1
Microsoft.PowerShell.IoT.SSD1306.psm1
README.md

README.md

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:

ssd1306_schema

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 https://github.com/PowerShell/PowerShell-IoT.git
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.