stoppping mario once message comes in
build rgb-board / build (push) Successful in 1m34s Details

main
Nathan Wagner 10 months ago
parent 3365c8f075
commit c4ffac2251

@ -91,7 +91,9 @@ func appendImage(img string, a *Animation) {
func (a *Animation) Next() (image.Image, <-chan time.Time, error) { func (a *Animation) Next() (image.Image, <-chan time.Time, error) {
var incoming incomingMessage var incoming incomingMessage
if a.countDown != 5000 {
a.animateMario() a.animateMario()
}
if a.images["doorbell"] != nil { if a.images["doorbell"] != nil {
if a.countDown > 0 { if a.countDown > 0 {
a.ctx.DrawImageAnchored(a.images["doorbell"], 0, 0, 0, 0) a.ctx.DrawImageAnchored(a.images["doorbell"], 0, 0, 0, 0)

Loading…
Cancel
Save