mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
ssd1306: fix thumby function arguments
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
"tinygo.org/x/drivers/ssd1306"
|
||||
)
|
||||
|
||||
func makeSSD1306(_, _ int16, address uint16) (*ssd1306.Device, error) {
|
||||
func makeSSD1306(_, _ int16) (*ssd1306.Device, error) {
|
||||
// width and height are known for thumby.
|
||||
machine.SPI0.Configure(machine.SPIConfig{})
|
||||
display := ssd1306.NewSPI(machine.SPI0, machine.THUMBY_DC_PIN, machine.THUMBY_RESET_PIN, machine.THUMBY_CS_PIN)
|
||||
|
||||
Reference in New Issue
Block a user