Update 'main.go'
build lightwatch / build (push) Successful in 7m49s Details

pull/3/head
nathan 1 year ago
parent d80d062f02
commit 8f3ec4c34f

@ -48,7 +48,7 @@ var (
rows = flag.Int("led-rows", 64, "number of rows supported")
cols = flag.Int("led-cols", 64, "number of columns supported")
parallel = flag.Int("led-parallel", 1, "number of daisy-chained panels")
chain = flag.Int("led-chain", 1, "number of displays daisy-chained")
chain = flag.Int("led-chain", 2, "number of displays daisy-chained")
brightness = flag.Int("brightness", 100, "brightness (0-100)")
hardware_mapping = flag.String("led-gpio-mapping", "regular", "Name of GPIO mapping used.")
show_refresh = flag.Bool("led-show-refresh", false, "Show refresh rate.")
@ -75,7 +75,7 @@ func listener(mqMessages chan mqtt.Message) {
//animator is a wrapping function for go routine that can receive an mq channel
func animator(tk *rgbmatrix.ToolKit, mqMessages chan mqtt.Message) {
//Playanimation comes from the toolkit, all it takes is an animation struct
tk.PlayAnimation(NewAnimation(image.Point{64, 64}, mqMessages))
tk.PlayAnimation(NewAnimation(image.Point{128, 64}, mqMessages))
}

Loading…
Cancel
Save