Skip to content

Commit d371232

Browse files
committed
fix ssd1289 example
1 parent fa17041 commit d371232

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/ssd1289/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"machine"
66
"math/rand"
77

8+
"tinygo.org/x/drivers/internal/pin"
89
"tinygo.org/x/drivers/ssd1289"
910
)
1011

@@ -16,7 +17,7 @@ func main() {
1617
//consider creating a more efficient bus implementation that uses
1718
//your microcontrollers built in "ports"
1819
//see rp2040bus.go for an example for the rapsberry pi pico
19-
bus := ssd1289.NewPinBus([16]machine.Pin{
20+
bus := ssd1289.NewPinBus([16]pin.Output{
2021
machine.GP4, //DB0
2122
machine.GP5, //DB1
2223
machine.GP6, //DB2

0 commit comments

Comments
 (0)