1 、 OS 版本控制
树梅派os 2019
第一次配置 /boots/
在boot分区下新建wpa_supplicant.conf文件
ssid 为wifi 名称
psk 为wifi密码
country=CN
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="wifiname"
psk="password"
priority=1
}
启动后联网 wifi 配置文件位置
etc/wpa_supplicant/wpa_supplicant.conf //
epageer
####微雪墨水屏幕
http://www.waveshare.net/wiki/2.9inch_e-Paper_Module_(B)
lsmod
查端口
https://www.jianshu.com/p/11de23140d10
https://www.jianshu.com/p/f31b90cc756f
呼吸灯
import time
import RPi.GPIO as GPIO //引入库
GPIO.setmode(GPIO.BOARD) //设置编号方式
GPIO.setup(12, GPIO.OUT) //设置12号引脚为输出模式
p = GPIO.PWM(12, 50) //将12号引脚初始化为PWM实例 ,频率为50Hz
p.start(0) //开始脉宽调制,参数范围为: (0.0 <= dc <= 100.0)
try:
while 1:
for dc in range(0, 101, 5):
p.ChangeDutyCycle(dc) //修改占空比 参数范围为: (0.0 <= dc <= 100.0)
time.sleep(0.1)
for dc in range(100, -1, -5):
p.ChangeDutyCycle(dc)
time.sleep(0.1)
except KeyboardInterrupt:
pass
p.stop() //停止输出PWM波
GPIO.cleanup() //清除
http://blog.bossma.cn/csharp/dotnet-core-raspberry-3bplus-hello-world/ .net 树梅派
http://www.waveshare.net/shop/e-Paper-Driver-HAT.htm 微雪显示屏
https://www.jianshu.com/p/467335f07e05 树梅派安装OS
http://shumeipai.nxez.com/2017/05/17/raspberry-pi-service-python-script-start-on-boot.html 开机服务启动
http://shumeipai.nxez.com/2019/08/27/add-the-open-and-shutdown-keys-to-the-raspberry-pi.html 开机关机
https://www.jianshu.com/p/2e3f65f11390 基础知识
https://github.com/guysoft/FullPageOS 全屏幕浏览器
网友评论