Skip to content

Commit

Permalink
sh1106: fixed the description of the device struct
Browse files Browse the repository at this point in the history
It looks like there was an copy paste left over. This is corrected to be
concise.

Signed-off-by: Christian Ege <[email protected]>
  • Loading branch information
graugans authored and conejoninja committed Oct 9, 2023
1 parent dc2de4f commit 182d4c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sh1106/sh1106.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ type Buser interface {

type VccMode uint8

// NewI2C creates a new SSD1306 connection. The I2C wire must already be configured.
// NewI2C creates a new SH1106 connection. The I2C wire must already be configured.
func NewI2C(bus drivers.I2C) Device {
return Device{
bus: &I2CBus{
Expand All @@ -61,7 +61,7 @@ func NewI2C(bus drivers.I2C) Device {
}
}

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

0 comments on commit 182d4c6

Please sign in to comment.