stoppping mario once message comes in
All checks were successful
build rgb-board / build (push) Successful in 1m34s

This commit is contained in:
2024-02-05 19:44:16 +00:00
parent 3365c8f075
commit c4ffac2251

View File

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