cleanup
All checks were successful
build rgb-board / build (push) Successful in 8m47s

This commit is contained in:
2024-02-15 22:44:33 +00:00
parent 476ed823bc
commit 1093a2c1b2
2 changed files with 3 additions and 8 deletions

View File

@@ -14,16 +14,13 @@ import (
type Animation struct {
ctx *gg.Context
position image.Point
dir image.Point
height int
width int
stroke int
updown string
mqmsg chan mqtt.Message
msg string
mario Mario
countDown int
mario Mario
doorbell Doorbell
}
@@ -35,11 +32,9 @@ func orchestrator(tk *rgbmatrix.ToolKit, mqMessages chan mqtt.Message) {
func animate(sz image.Point, mqMessages chan mqtt.Message) *Animation {
return &Animation{
ctx: gg.NewContext(sz.X, sz.Y),
dir: image.Point{1, 1},
height: 8,
width: 8,
stroke: 8,
updown: "marioUp",
mqmsg: mqMessages,
countDown: 5000,
mario: Mario{