mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-11 18:33:43 +00:00
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 <ch@ege.io>
This commit is contained in:
committed by
Daniel Esteban
parent
dc2de4f9ed
commit
182d4c6ebb
+2
-2
@@ -51,7 +51,7 @@ type Buser interface {
|
|||||||
|
|
||||||
type VccMode uint8
|
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 {
|
func NewI2C(bus drivers.I2C) Device {
|
||||||
return Device{
|
return Device{
|
||||||
bus: &I2CBus{
|
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 {
|
func NewSPI(bus drivers.SPI, dcPin, resetPin, csPin machine.Pin) Device {
|
||||||
dcPin.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
dcPin.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
||||||
resetPin.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
resetPin.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
||||||
|
|||||||
Reference in New Issue
Block a user