can't find what's causing the fill
build rgb-board / build (push) Successful in 2m5s Details

main
Nathan Wagner 9 months ago
parent 2ac3a92b7a
commit 0f4addd5db

@ -15,6 +15,8 @@ type Doorbell struct {
func (a *Animation) animateDoorbell() { func (a *Animation) animateDoorbell() {
if a.countDown > 0 { if a.countDown > 0 {
a.ctx.SetColor(color.Black)
a.ctx.Clear()
a.ctx.DrawImageAnchored(a.doorbell.image, 0, 0, 0, 0) a.ctx.DrawImageAnchored(a.doorbell.image, 0, 0, 0, 0)
a.countDown -= 50 a.countDown -= 50
} else { } else {

@ -51,7 +51,6 @@ func (a *Animation) Next() (image.Image, <-chan time.Time, error) {
default: default:
a.animateMario() a.animateMario()
} }
//a.ctx.SetColor(color.White)
select { select {
case msg := <-a.mqmsg: case msg := <-a.mqmsg:
json.Unmarshal([]byte(string(msg.Payload())), &incoming) json.Unmarshal([]byte(string(msg.Payload())), &incoming)

Loading…
Cancel
Save