Update 'board.go'
build rgb-board / build (push) Successful in 2m15s Details

main
nathan 9 months ago
parent aa3e51f56f
commit af060a1600

@ -58,7 +58,7 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) {
json.Unmarshal([]byte(string(msg.Payload())), &incoming) json.Unmarshal([]byte(string(msg.Payload())), &incoming)
fmt.Println(incoming.Type) fmt.Println(incoming.Type)
if incoming.Type == "doorbell" { if incoming.Type == "doorbell" {
go loadImage(incoming.Type, incoming.Image, a) go a.loadImage(incoming.Type, incoming.Image)
} else { } else {
a.ctx.DrawString(a.msg, 5, 9) a.ctx.DrawString(a.msg, 5, 9)
} }

Loading…
Cancel
Save