From 565522cb9baca3ff77279697119d7e69701249f2 Mon Sep 17 00:00:00 2001 From: Christian Ege Date: Sun, 8 Oct 2023 11:50:37 +0200 Subject: [PATCH] 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 --- sh1106/sh1106.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sh1106/sh1106.go b/sh1106/sh1106.go index fbd0b2147..74b31c994 100644 --- a/sh1106/sh1106.go +++ b/sh1106/sh1106.go @@ -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{ @@ -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})