Skip to content

Commit d0df76e

Browse files
authored
Added init example for SS1106
1 parent fb46a05 commit d0df76e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ The library supports different protocols to access the OLED display. Currently t
6161

6262
SSD1306 display(ADDRESS, SDA, SDC);
6363
```
64+
or for a SSH1106:
65+
```C++
66+
#include <Wire.h>
67+
#include "SSH1106.h"
68+
69+
SSH1106 display(ADDRESS, SDA, SDC);
70+
```
6471

6572
### I2C with brzo_i2c
6673

@@ -70,6 +77,14 @@ SSD1306 display(ADDRESS, SDA, SDC);
7077

7178
SSD1306Brzo display(ADDRESS, SDA, SDC);
7279
```
80+
or for the SSH1106:
81+
```C++
82+
#include <brzo_i2c.h>
83+
#include "SSH1106Brzo.h"
84+
85+
SSH1106Brzo display(ADDRESS, SDA, SDC);
86+
```
87+
7388
### SPI
7489

7590
```C++
@@ -78,6 +93,13 @@ SSD1306Brzo display(ADDRESS, SDA, SDC);
7893

7994
SSD1306Spi display(RES, DC, CS);
8095
```
96+
or for the SH1106:
97+
```C++
98+
#include <SPI.h>
99+
#include "SH1106Spi.h"
100+
101+
SH1106Spi display(RES, DC, CS);
102+
```
81103

82104
## API
83105

0 commit comments

Comments
 (0)