【文件属性】:
文件名称:rpi-scripts:Raspberry Pi 3B脚本集合
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-11 06:11:22
raspberry-pi scripts Shell
脚本
Raspberry Pi 3B脚本集合
适应性
经过测试且100%兼容:
现在正在测试Raspbian 9.1(拉伸)
转发流量
例如,如果将eth0配置为使用Internet,而wlan0是访问点(WiFi热点),则可以执行以下操作:
forward.sh eth0 wlan0
of! 您现在可以通过wlan0访问互联网。
温度
仅显示当前的CPU和GPU温度。 实时Monotor: watch -tn 1 ./temperature.py
输出示例:
CPU: 50.5'C 122.9'F
GPU: 49.9'C 121.8'F
通用输入输出
使用简单的语法控制GPIO引脚: gpio.sh pin value
将引脚18设置为1: ./gpio.sh 18 1
将引脚15设置为0: gpio.sh 15 0
gpio.sh 17根据当前值将引脚gpio.sh 1
【文件预览】:
rpi-scripts-master
----restart.sh(60B)
----gpio.sh(1KB)
----randmac.sh(417B)
----governor.py(2KB)
----gateway.sh(138B)
----temperature.py(712B)
----README.md(2KB)
----net-monitor.sh(927B)
----forward.sh(299B)