05 2019 档案

摘要:bluetoothd -v 进入:bluetoothctl 阅读全文
posted @ 2019-05-31 09:43 ahuo 阅读(428) 评论(0) 推荐(0) 编辑
摘要:import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(26, GPIO.OUT) p = GPIO.PWM(26, 100) #100 是频率 p.start(10) # p.start(dc) dc 代表占空比 0.0 ~ 100.0 try: while 1: ... 阅读全文
posted @ 2019-05-30 14:06 ahuo 阅读(1026) 评论(0) 推荐(0) 编辑
摘要:按照下面的命令点亮及熄灭LED pi@raspberrypi:/sys/class/gpio $echo 26 > exportpi@raspberrypi:/sys/class/gpio $ cd gpio26pi@raspberrypi:/sys/class/gpio/gpio26 $ lsac 阅读全文
posted @ 2019-05-29 22:13 ahuo 阅读(187) 评论(0) 推荐(0) 编辑
摘要:修改 /etc/fstab 启动自动mount tmpfs /var/iot tmpfs defaults,size=10M 0 0 阅读全文
posted @ 2019-05-29 21:15 ahuo 阅读(923) 评论(0) 推荐(0) 编辑
摘要:/home/pi/.config/lxsession/LXDE-pi/autostart 启动计算器 @galculator 浏览器 @chromium-browser http://127.0.0.1 阅读全文
posted @ 2019-05-29 16:25 ahuo 阅读(568) 评论(0) 推荐(0) 编辑
摘要:sudo vi /etc/lightdm/lightdm.conf 取消其中的注释 #xserver-command=X 并修改为 xserver-command=X -s 0 -dpms -s # –设置屏幕保护不启用dpms 关闭电源节能管理重启树莓派 sudo reboot 阅读全文
posted @ 2019-05-29 16:17 ahuo 阅读(425) 评论(0) 推荐(0) 编辑
摘要:在 /etc/pip.conf 添加如下内容,启用源 [global] extra-index-url=https://www.piwheels.org/simple 下载后 pip install **.whl 安装 国内源: 新版ubuntu要求使用https源,要注意。 清华:https:// 阅读全文
posted @ 2019-05-29 14:23 ahuo 阅读(4724) 评论(0) 推荐(0) 编辑
摘要:vi /etc/init.d/sss sudo update-rc.d sss defaults 阅读全文
posted @ 2019-05-23 17:09 ahuo 阅读(213) 评论(0) 推荐(0) 编辑
摘要:树莓派系统包含了18b20的驱动(1-wire interface),我们只需要将其开启即可。有两种开启方式: 方式一:输入raspi-config命令,然后在interfacing options –> 1-wire中设为enable。方式二:在/boot/config.txt文件中,添加dtov 阅读全文
posted @ 2019-05-16 09:09 ahuo 阅读(198) 评论(0) 推荐(0) 编辑
摘要:sudo raspi-configInterfacing Options -》 VNC1、停止VNC窗口: vncserver -kill:1 2、修改密码 vncpasswd 3、重启服务 service vncserver restart 阅读全文
posted @ 2019-05-15 15:53 ahuo 阅读(196) 评论(0) 推荐(0) 编辑
摘要:sudo pip install rpi.gpio 阅读全文
posted @ 2019-05-15 13:00 ahuo 阅读(2538) 评论(0) 推荐(0) 编辑
摘要:LCD和hdmi切换 /home/LCD-show-master 目录下 LCD-hdmi LCD35-show 时区修改 sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime date -R wifi配置 cat /etc/wpa_sup 阅读全文
posted @ 2019-05-14 22:18 ahuo 阅读(1289) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示