![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
树莓派
虽千万人 吾往矣
这个作者很懒,什么都没留下…
展开
-
树莓派连接摄像头
连接图在 Raspberry Pi 的 raspi-config 程序中启用摄像头的支持sudo raspi-config然后正常退出重启即可测试使用$raspistill -v -o test.jpg2秒连续抓拍raspistill -o image%d.jpg -rot 180 -w 1024-h 768 -t 20000 -tl 5000 -v原文地址...转载 2020-09-05 10:00:29 · 1191 阅读 · 0 评论 -
树莓派zip压缩和unzip解压缩命令详解
1、把/home目录下面的mydata目录压缩为mydata.zipzip -r mydata.zip mydata #压缩mydata目录2、把/home目录下面的mydata.zip解压到mydatabak目录里面unzip mydata.zip -d mydatabak3、把/home目录下面的abc文件夹和123.txt压缩成为abc123.zipzip -r abc123.zip abc 123.txt4、把/home目录下面的wwwroot.zip直接解压到/home目录里面unz转载 2020-09-06 11:11:17 · 7570 阅读 · 0 评论 -
树莓派使用截图功能
安装scrotsudo apt-get install scrot鼠标选框截图sudo scrot -s 全屏截图sudo scrot定时截图-d后面的数字定时几秒-d5定时5秒后全屏截图sudo scrot -d5查看更多方法sudo scrot -h原创 2020-09-06 08:44:06 · 127 阅读 · 0 评论 -
树莓派python调用摄像头拍照
1、摄像头预览from picamera import PiCamerafrom time import sleepcamera = PiCamera()camera.start_preview()sleep(10)camera.stop_preview()2、如果图像时上下颠倒的,可以用一下代码实现翻转camera.rotation = 180camera.start_preview()sleep(10)camera.stop_preview()可以设置旋转的度数为90,180转载 2020-09-06 08:21:01 · 6860 阅读 · 0 评论 -
树莓派连接人体感应模块HC-SR501
1、接线树莓派 人体红外感应3V3 vccGND GNDGPIO18(board 编码12) OUT树莓派引脚图2、检测人,检测到使用蜂鸣器报警# -*- coding:utf-8 -*-import RPi.GPIO as GPIOimport timedef init(): GPIO.setwarnings(False) GPIO.setmode(原创 2020-08-31 22:45:01 · 1767 阅读 · 0 评论 -
树莓派连接蜂鸣器
1、参考下面连接好设备:树莓派 有源蜂鸣器GPIO17 SIG(信号、数据针脚)3.3V VCC(+、正极)GND GND (负极、—)我的有源蜂鸣器没有SIG,但是有I/O,也是连接的GPIO17,也可以正常工作2、修改下列文件实现自己需要的功能#!/usr/bin/env python# shumeipai.netimport RPi.GPIO as原创 2020-08-31 21:46:46 · 3592 阅读 · 0 评论 -
树莓派连接RFID
连线图Read.py# coding:utf-8import RPi.GPIO as GPIOimport signalfrom mfrc522 import MFRC522continue_reading = True# 捕获SIGINT以便在脚本中止时进行清理def end_read(signal, frame): global continue_reading print "Ctrl+C captured, ending read." cont原创 2020-08-31 20:17:45 · 1741 阅读 · 1 评论 -
Linux查找某个文件位置
sudo find / -name 文件名原创 2020-08-26 19:05:41 · 315 阅读 · 0 评论 -
树莓派下载wxPython
apt-cache search wxpython返回信息继续sudo apt-get install python-wxtools不返回信息参考原文转载 2020-08-26 17:49:34 · 330 阅读 · 2 评论 -
pycharm修改项目使用python版本
原文链接转载文章仅供个人学习,并无侵犯原作者想法file->setting->project->project interpreter在System Interpreter里面选择转载 2020-08-25 19:26:50 · 464 阅读 · 0 评论 -
Linux查看python路径
查看所有python的路径,不止一个whereis python 查看当前使用的python路径which python转载 2020-08-25 19:20:19 · 564 阅读 · 0 评论 -
Linux解压zip压缩包
下载zipsudo apt-get install zip下载unzipsudo apt-get install unzip先切换到zip父目录,然后unzip 文件名unzip 文件名原创 2020-08-24 22:01:14 · 231 阅读 · 0 评论 -
树莓派安装安装谷歌拼音输入法
// 安装谷歌拼音输入法sudo apt-get install fcitx fcitx-googlepinyin原创 2020-08-14 09:46:00 · 450 阅读 · 0 评论 -
树莓派镜像源更新为国内源
使用管理员权限,编辑/etc/apt/sources.list文件。sudo gedit /etc/apt/sources.list删除原有内容,粘贴保存退出deb http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main contrib non-free rpideb-src http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ stretch main cont原创 2020-08-14 09:35:58 · 156 阅读 · 0 评论 -
树莓派下载gedit
sudo apt-get install gedit原创 2020-08-14 09:06:40 · 810 阅读 · 0 评论 -
树莓派连接显示器,但显示器一直显示无信号
第一步:树莓派断电,把sd卡取出,用读卡器连接到电脑上第二步:先将config.txt文件复制到其他地方备份,重新建个config.txt 里面内容如下:hdmi_force_hotplug=1config_hdmi_boost=4hdmi_group=2hdmi_mode=9hdmi_drive=2hdmi_ignore_edid=0xa5000080disable_overscan=1第三步:重新放到板子里面就可以显示好像有些问题,但是问题不大,估计是拉伸之类的问题,不影响使用,只原创 2020-08-13 22:05:55 · 7584 阅读 · 4 评论 -
通过网线获取树莓派IP
1、用网线连接树莓派和电脑2、电脑:网络->网络和共享中心->下图->属性->共享->允许其他网络勾选完成3、电脑:cmd输入arp -a192.168.137.1下的第一个IP就是树莓派IP参考文章原创 2020-08-10 21:24:59 · 2095 阅读 · 0 评论