Skip to content

Commit 29efd7c

Browse files
authored
Reformat examples (#4)
* all: add custom import path to ensure correct use of custom domain for package installs Signed-off-by: Ron Evans <ron@hybridgroup.com> * examples: correct fornatting for examples Signed-off-by: Ron Evans <ron@hybridgroup.com>
1 parent c4d891d commit 29efd7c

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

examples/epd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import (
55

66
"image/color"
77

8+
"tinygo.org/x/drivers/waveshare-epd/epd2in13x"
89
"tinygo.org/x/tinyfont"
910
"tinygo.org/x/tinyfont/freemono"
10-
"tinygo.org/x/drivers/waveshare-epd/epd2in13x"
1111
)
1212

1313
var display epd2in13x.Device

examples/hub75/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"image/color"
77

8-
"tinygo.org/x/tinyfont"
98
"tinygo.org/x/drivers/hub75"
9+
"tinygo.org/x/tinyfont"
1010
)
1111

1212
var display hub75.Device

examples/pybadge/main.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
package main
22

33
import (
4-
"tinygo.org/x/tinyfont/gophers"
54
"image/color"
65
"machine"
76

8-
"tinygo.org/x/tinyfont/freeserif"
9-
107
"tinygo.org/x/tinyfont/freemono"
118
"tinygo.org/x/tinyfont/freesans"
9+
"tinygo.org/x/tinyfont/freeserif"
10+
"tinygo.org/x/tinyfont/gophers"
1211

13-
"tinygo.org/x/tinyfont"
1412
"tinygo.org/x/drivers/st7735"
13+
"tinygo.org/x/tinyfont"
1514
)
1615

1716
func main() {
@@ -39,7 +38,6 @@ func main() {
3938

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

42-
4341
}
4442

4543
func getRainbowRGB(i uint8) color.RGBA {

0 commit comments

Comments
 (0)