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

Commit e11e9e6

Browse files
author
Andrew Menagarishvili
committed
SSD1306 example doc
1 parent 44bae93 commit e11e9e6

File tree

1 file changed

+38
-0
lines changed
  • Examples/Microsoft.PowerShell.IoT.SSD1306

1 file changed

+38
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Example module Microsoft.PowerShell.IoT.SSD1306
2+
3+
This PowerShell module is for working with [small I2C OLED displays](https://www.ebay.com/itm/2X-0-96-I2C-IIC-Serial-128X64-LED-OLED-LCD-Display-Module-for-Arduino-White/191785893008?epid=2001476960&hash=item2ca7547c90:g:WbwAAOSwAPVZLOx~) based on [SSD1306 driver chip](https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf).
4+
5+
## Hardware setup
6+
7+
There are many versions of small OLED displays; in this example we'll use a version based on I2C interface.
8+
9+
Wiring diagram with Raspberry Pi 3 is like this:
10+
11+
zzz
12+
13+
## Software setup
14+
15+
### Install PowerShell Core on Raspberry Pi
16+
17+
Installation instructions can be found [here](https://github.com/PowerShell/PowerShell/tree/master/docs/installation/linux.md#raspbian).
18+
19+
### Enable I2C interface on Raspberry Pi
20+
21+
1. `sudo raspi-config`
22+
2. `5 Interfacing options`
23+
3. `P5 I2C`
24+
4. `Would you like ARM I2C interface to be enabled -> Yes`
25+
26+
### Start Powershell and install modules
27+
28+
```powershell
29+
sudo pwsh
30+
Install-Module -Name Microsoft.PowerShell.IoT
31+
git clone https://github.com/PowerShell/PowerShell-IoT.git
32+
Import-Module ./PowerShell-IoT/Examples/Microsoft.PowerShell.IoT.SSD1306
33+
```
34+
35+
### Run example
36+
```powershell
37+
PS /home/pi> New-OledDisplay | Set-OledText -Value "Hello from PowerShell"
38+
```

0 commit comments

Comments
 (0)