added images for logo, minor fixes

This commit is contained in:
Daniel Esteban 2026-04-21 22:18:18 +02:00
parent a258ee0540
commit db8f012b41
25 changed files with 8 additions and 4 deletions

View file

@ -35,7 +35,6 @@ func adventure() {
} }
for { for {
println("SCENE", s)
scene(s) scene(s)
selected = 0 selected = 0
score += s score += s

View file

@ -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) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

File diff suppressed because one or more lines are too long

View file

@ -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 {