This commit is contained in:
7
board.go
7
board.go
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user