Skip to content

Reformat examples #4

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

Merged
merged 2 commits into from
Mar 13, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/epd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (

"image/color"

"tinygo.org/x/drivers/waveshare-epd/epd2in13x"
"tinygo.org/x/tinyfont"
"tinygo.org/x/tinyfont/freemono"
"tinygo.org/x/drivers/waveshare-epd/epd2in13x"
)

var display epd2in13x.Device
Expand Down
2 changes: 1 addition & 1 deletion examples/hub75/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"image/color"

"tinygo.org/x/tinyfont"
"tinygo.org/x/drivers/hub75"
"tinygo.org/x/tinyfont"
)

var display hub75.Device
Expand Down
8 changes: 3 additions & 5 deletions examples/pybadge/main.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package main

import (
"tinygo.org/x/tinyfont/gophers"
"image/color"
"machine"

"tinygo.org/x/tinyfont/freeserif"

"tinygo.org/x/tinyfont/freemono"
"tinygo.org/x/tinyfont/freesans"
"tinygo.org/x/tinyfont/freeserif"
"tinygo.org/x/tinyfont/gophers"

"tinygo.org/x/tinyfont"
"tinygo.org/x/drivers/st7735"
"tinygo.org/x/tinyfont"
)

func main() {
Expand Down Expand Up @@ -39,7 +38,6 @@ func main() {

tinyfont.WriteLineColors(&display, &gophers.Regular58pt, 18, 90, []byte("ABC"), mycolors[9:])


}

func getRainbowRGB(i uint8) color.RGBA {
Expand Down
3 changes: 2 additions & 1 deletion tinyfont.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package tinyfont
package tinyfont // import "tinygo.org/x/tinyfont"

import (
"image/color"
Expand All @@ -12,6 +12,7 @@ const (
ROTATION_180 Rotation = 2
ROTATION_270 Rotation = 3
)

type Rotation uint8

type Glyph struct {
Expand Down