## 前提環境 - Raspberry Pi 3B - Ubuntu 22.04.2 LTS ## 環境構築 ローカル環境をできるだけ汚したくないのでDockerで仮想化します 実際に光らせるLEDが無いので動くかは知りません ### illumipacketのソースコードを用意 ```shell git clone https://github.com/yuukami256/illumi-packet.git cd illumi-packet ``` ### goのコンテナを作成 ```shell docker run -v $(pwd):/illumi-packet --rm -it golang bash cd /illumi-packet ``` RasPi3Bだとスペックに余裕がなさすぎてつらい ### libcap, sconsのインストール ```shell apt update apt install libpcap-dev scons ``` ### rpi_ws281xのインストール ```shell git clone https://github.com/jgarff/rpi_ws281x.git cd rpi_ws281x scons cp -ai ./ws2811.h ./rpihw.h ./pwm.h /usr/local/include/ cp -ai ./libws2811.a /usr/local/lib/ ``` ### illumi packetのビルド ```shell go build illumi-packet.go ``` めっちゃ待つ ### 完成 カレントディレクトリに`illumi-packet`という実行ファイルがあるのでそれを実行すれば多分動く
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up