Skip to content

Commit

Permalink
typos corrected and minor formatting improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-l5 authored Mar 13, 2023
1 parent 4aea18d commit 35218a6
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ The module includes the class `SH1107` and the derived classes `SH1107_I2C` and

### I2C
```
display = sh1106.SH1106_I2C(width, height, i2c, res=None, address=0x3d, rotate=0, external_vcc=False)
display = sh1107.SH1107_I2C(width,
height,
i2c,
res=None,
address=0x3d,
rotate=0,
external_vcc=False)
```
- width and height define the size of the display
- i2c is an I2C object, which has to be created beforehand, and sets the SDA and SCL pins
Expand All @@ -47,7 +53,14 @@ display = sh1106.SH1106_I2C(width, height, i2c, res=None, address=0x3d, rotate=0

### SPI
```
display = sh1106.SH1106_SPI(width, height, spi, dc, res=None, cs=None, rotate=0, external_vcc=False)
display = sh1107.SH1107_SPI(width,
height,
spi,
dc,
res=None,
cs=None,
rotate=0,
external_vcc=False)
```
- width and height define the size of the display
- spi is an SPI object, which has to be created beforehand, and sets the SCL and MOSI pins
Expand Down

0 comments on commit 35218a6

Please sign in to comment.