Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed cannot use display error #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nguyengiabach1201
Copy link

Fixed these errors:

command-line-arguments

gopher.go:80:20: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:81:20: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:82:20: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:83:20: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:86:21: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.WriteLine: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:89:20: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:90:20: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:103:21: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:114:21: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:121:21: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:127:21: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:133:21: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:140:21: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:145:21: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinyfont.DrawChar: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)
gopher.go:151:3: cannot use display (variable of type machine.DisplayMode3) as drivers.Displayer value in argument to tinydraw.FilledRectangle: machine.DisplayMode3 does not implement drivers.Displayer (method Display has pointer receiver)

By changed display to &display

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant