added images for logo, minor fixes
|
|
@ -35,7 +35,6 @@ func adventure() {
|
||||||
}
|
}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
println("SCENE", s)
|
|
||||||
scene(s)
|
scene(s)
|
||||||
selected = 0
|
selected = 0
|
||||||
score += s
|
score += s
|
||||||
|
|
|
||||||
7
badge.go
|
|
@ -263,8 +263,13 @@ func getRainbowRGB(i uint8) color.RGBA {
|
||||||
}
|
}
|
||||||
|
|
||||||
func showLogoBin() {
|
func showLogoBin() {
|
||||||
|
selectedScreen++
|
||||||
row := make([]color.RGBA, displayWidth)
|
row := make([]color.RGBA, displayWidth)
|
||||||
unsafeBadgeLogo := unsafe.Slice(unsafe.StringData(badgeLogo), len(badgeLogo))
|
unsafeBadgeLogo := unsafe.Slice(unsafe.StringData(badgeLogo), len(badgeLogo))
|
||||||
|
|
||||||
|
if len(badgeLogo) < displayHeight*displayWidth {
|
||||||
|
return
|
||||||
|
}
|
||||||
for i := 0; i < displayHeight; i++ {
|
for i := 0; i < displayHeight; i++ {
|
||||||
for j := 0; j < displayWidth; j++ {
|
for j := 0; j < displayWidth; j++ {
|
||||||
values, err := strconv.ParseUint(string(unsafeBadgeLogo[6*(displayWidth*i+j):6*(displayWidth*i+j+1)]), 16, 32)
|
values, err := strconv.ParseUint(string(unsafeBadgeLogo[6*(displayWidth*i+j):6*(displayWidth*i+j+1)]), 16, 32)
|
||||||
|
|
@ -294,8 +299,6 @@ func showLogoBin() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
selectedScreen++
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func QR(msg string) {
|
func QR(msg string) {
|
||||||
|
|
|
||||||
BIN
cmd/logogen/images/chip_240x135.jpg
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
cmd/logogen/images/fosdem_160x128.jpg
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
cmd/logogen/images/fosdem_320x240.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
cmd/logogen/images/fosdemgo_160x128.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
cmd/logogen/images/fosdemgo_320x240.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
cmd/logogen/images/golab_160x128.jpg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
cmd/logogen/images/golab_320x240.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
cmd/logogen/images/gopherconeu_160x128.jpg
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
cmd/logogen/images/gopherconeu_320x240.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
cmd/logogen/images/gopherconie_320x240.jpg
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
cmd/logogen/images/gopherconuk_160x128.jpg
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
cmd/logogen/images/gopherconuk_320x240.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
cmd/logogen/images/gopherconus2022_160x128.jpg
Normal file
|
After Width: | Height: | Size: 6.4 KiB |
BIN
cmd/logogen/images/gopherconus2023_160x128.jpg
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
cmd/logogen/images/gopherconus2025_160x128.jpg
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
cmd/logogen/images/gopherconus2026_320x240.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
cmd/logogen/images/kubeconeu2023_160x128.jpg
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
BIN
cmd/logogen/images/purplehardware_320x240.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
cmd/logogen/images/tinygo_160x128.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
cmd/logogen/images/tinygo_320x240.jpg
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
cmd/logogen/images/wasmio_320x240.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
1
logo.bin
3
main.go
|
|
@ -87,6 +87,7 @@ func main() {
|
||||||
buttonsState = make([]bool, 9)
|
buttonsState = make([]bool, 9)
|
||||||
buttonsOldState = make([]bool, 9)
|
buttonsOldState = make([]bool, 9)
|
||||||
defaultFont = &freemono.Regular12pt7b
|
defaultFont = &freemono.Regular12pt7b
|
||||||
|
|
||||||
if displayWidth <= 180 || (displayWidth == 240 && displayHeight == 135) {
|
if displayWidth <= 180 || (displayWidth == 240 && displayHeight == 135) {
|
||||||
defaultFont = &proggy.TinySZ8pt7b
|
defaultFont = &proggy.TinySZ8pt7b
|
||||||
}
|
}
|
||||||
|
|
@ -94,7 +95,7 @@ func main() {
|
||||||
initHardware()
|
initHardware()
|
||||||
display.FillScreen(colorBlack)
|
display.FillScreen(colorBlack)
|
||||||
setCustomData()
|
setCustomData()
|
||||||
adventure()
|
|
||||||
Info()
|
Info()
|
||||||
|
|
||||||
for {
|
for {
|
||||||
|
|
|
||||||