上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 77 下一页
摘要: make LibreSSL 2.6.4 and earlier do not provide the necessary APIs /root/Python-3.7.0/build/lib.linux-armv7l-3.7 _ssl.cpython-37m-arm-linux-gnueabihf_f 阅读全文
posted @ 2019-06-04 14:23 ahuo 阅读(542) 评论(0) 推荐(0)
摘要: tar xzf $INPUT_FOLDER/archive.tar.gz --no-same-owner -C /mnt/test-nas/ 阅读全文
posted @ 2019-06-04 09:39 ahuo 阅读(539) 评论(0) 推荐(0)
摘要: bluetoothd -v 进入:bluetoothctl 阅读全文
posted @ 2019-05-31 09:43 ahuo 阅读(439) 评论(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 阅读(1036) 评论(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 阅读(200) 评论(0) 推荐(0)
摘要: 修改 /etc/fstab 启动自动mount tmpfs /var/iot tmpfs defaults,size=10M 0 0 阅读全文
posted @ 2019-05-29 21:15 ahuo 阅读(932) 评论(0) 推荐(0)
摘要: /home/pi/.config/lxsession/LXDE-pi/autostart 启动计算器 @galculator 浏览器 @chromium-browser http://127.0.0.1 阅读全文
posted @ 2019-05-29 16:25 ahuo 阅读(578) 评论(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 阅读(437) 评论(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 阅读(4765) 评论(0) 推荐(0)
摘要: vi /etc/init.d/sss sudo update-rc.d sss defaults 阅读全文
posted @ 2019-05-23 17:09 ahuo 阅读(223) 评论(0) 推荐(0)
摘要: 树莓派系统包含了18b20的驱动(1-wire interface),我们只需要将其开启即可。有两种开启方式: 方式一:输入raspi-config命令,然后在interfacing options –> 1-wire中设为enable。方式二:在/boot/config.txt文件中,添加dtov 阅读全文
posted @ 2019-05-16 09:09 ahuo 阅读(211) 评论(0) 推荐(0)
摘要: sudo raspi-configInterfacing Options -》 VNC1、停止VNC窗口: vncserver -kill:1 2、修改密码 vncpasswd 3、重启服务 service vncserver restart 阅读全文
posted @ 2019-05-15 15:53 ahuo 阅读(205) 评论(0) 推荐(0)
摘要: sudo pip install rpi.gpio 阅读全文
posted @ 2019-05-15 13:00 ahuo 阅读(2574) 评论(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 阅读(1343) 评论(0) 推荐(0)
摘要: nohup python test.py > nohup.out 2>&1 & 发现nohup.out中显示不出来python程序中print的东西。 这是因为python的输出有缓冲,导致nohup.out并不能够马上看到输出。 python 有个-u参数,使得python不启用缓冲。 nohup 阅读全文
posted @ 2019-04-22 14:07 ahuo 阅读(938) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 77 下一页