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