fixing map for doorbell
All checks were successful
build rgb-board / build (push) Successful in 8m19s
All checks were successful
build rgb-board / build (push) Successful in 8m19s
This commit is contained in:
3
main.go
3
main.go
@@ -14,6 +14,7 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
rgbmatrix "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix"
|
rgbmatrix "gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix"
|
||||||
"github.com/disintegration/imaging"
|
"github.com/disintegration/imaging"
|
||||||
MQTT "github.com/eclipse/paho.mqtt.golang"
|
MQTT "github.com/eclipse/paho.mqtt.golang"
|
||||||
@@ -156,7 +157,7 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) {
|
|||||||
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.image[2], 0, 0, 0, 0)
|
a.ctx.DrawImageAnchored(a.images["doorbell"], 0, 0, 0, 0)
|
||||||
a.countDown -= 50
|
a.countDown -= 50
|
||||||
} else {
|
} else {
|
||||||
//a.image = a.image[:len(a.image)-1]
|
//a.image = a.image[:len(a.image)-1]
|
||||||
|
|||||||
Reference in New Issue
Block a user