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 {
println("SCENE", s)
scene(s)
selected = 0
score += s

View file

@ -263,8 +263,13 @@ func getRainbowRGB(i uint8) color.RGBA {
}
func showLogoBin() {
selectedScreen++
row := make([]color.RGBA, displayWidth)
unsafeBadgeLogo := unsafe.Slice(unsafe.StringData(badgeLogo), len(badgeLogo))
if len(badgeLogo) < displayHeight*displayWidth {
return
}
for i := 0; i < displayHeight; i++ {
for j := 0; j < displayWidth; j++ {
values, err := strconv.ParseUint(string(unsafeBadgeLogo[6*(displayWidth*i+j):6*(displayWidth*i+j+1)]), 16, 32)
@ -294,8 +299,6 @@ func showLogoBin() {
return
}
}
selectedScreen++
}
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)
buttonsOldState = make([]bool, 9)
defaultFont = &freemono.Regular12pt7b
if displayWidth <= 180 || (displayWidth == 240 && displayHeight == 135) {
defaultFont = &proggy.TinySZ8pt7b
}
@ -94,7 +95,7 @@ func main() {
initHardware()
display.FillScreen(colorBlack)
setCustomData()
adventure()
Info()
for {