updates make install

This commit is contained in:
2023-12-21 10:29:47 -05:00
parent 15b6d71bc4
commit 064efe734c
17 changed files with 6 additions and 1417 deletions
@@ -1,39 +0,0 @@
package main
import (
"flag"
"os"
"time"
"github.com/RockKeeper/go-rpi-rgb-led-matrix"
"github.com/RockKeeper/go-rpi-rgb-led-matrix/rpc"
)
var (
img = flag.String("image", "", "image path")
)
func main() {
f, err := os.Open(*img)
fatal(err)
m, err := rpc.NewClient("tcp", "10.20.20.20:1234")
fatal(err)
tk := rgbmatrix.NewToolKit(m)
close, err := tk.PlayGIF(f)
fatal(err)
time.Sleep(time.Second * 3)
close <- true
}
func init() {
flag.Parse()
}
func fatal(err error) {
if err != nil {
panic(err)
}
}