can't find what's causing the fill
All checks were successful
build rgb-board / build (push) Successful in 2m5s
All checks were successful
build rgb-board / build (push) Successful in 2m5s
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
1
board.go
1
board.go
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user