stoppping mario once message comes in
All checks were successful
build rgb-board / build (push) Successful in 1m34s
All checks were successful
build rgb-board / build (push) Successful in 1m34s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user