Skip to content

Commit 182d4c6

Browse files
graugansconejoninja
authored andcommitted
sh1106: fixed the description of the device struct
It looks like there was an copy paste left over. This is corrected to be concise. Signed-off-by: Christian Ege <[email protected]>
1 parent dc2de4f commit 182d4c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sh1106/sh1106.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type Buser interface {
5151

5252
type VccMode uint8
5353

54-
// NewI2C creates a new SSD1306 connection. The I2C wire must already be configured.
54+
// NewI2C creates a new SH1106 connection. The I2C wire must already be configured.
5555
func NewI2C(bus drivers.I2C) Device {
5656
return Device{
5757
bus: &I2CBus{
@@ -61,7 +61,7 @@ func NewI2C(bus drivers.I2C) Device {
6161
}
6262
}
6363

64-
// NewSPI creates a new SSD1306 connection. The SPI wire must already be configured.
64+
// NewSPI creates a new SH1106 connection. The SPI wire must already be configured.
6565
func NewSPI(bus drivers.SPI, dcPin, resetPin, csPin machine.Pin) Device {
6666
dcPin.Configure(machine.PinConfig{Mode: machine.PinOutput})
6767
resetPin.Configure(machine.PinConfig{Mode: machine.PinOutput})

0 commit comments

Comments
 (0)