【文件属性】:
文件名称:rpi-redditbutton:根据 reddit 按钮状态更改 LED 的颜色
文件大小:9KB
文件格式:ZIP
更新时间:2021-06-13 00:47:47
JavaScript
rpi-redditbutton
根据 reddit 按钮的值更改连接到树莓派的 LED 的颜色。
入门
在你的树莓派上安装 node.js
sudo apt-get update
wget http://node-arm.herokuapp.com/node_latest_armhf.deb
sudo dpkg -i node_latest_armhf.deb
安装 pi-blaster
cd ~
git clone https://github.com/sarfata/pi-blaster
cd pi-blaster
sudo apt-get install autoconf
./autogen.sh
./configure
make
sudo make install # Will cause the pi-blaster daeomon to start automati
【文件预览】:
rpi-redditbutton-master
----.gitignore(538B)
----button.js(3KB)
----package.json(547B)
----LICENSE(756B)
----README.md(2KB)
----test()
--------button.js(3KB)
--------led2.js(254B)
--------led.js(998B)
--------button-origional.js(5KB)
--------helloworld.js(236B)