Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (25 loc) · 1.37 KB

File metadata and controls

38 lines (25 loc) · 1.37 KB

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"