首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
派用专题
树莓派用微动开关控制继电器
K1 K2 分别接树莓派上GPIO口上,G接地 代码是复制别人的 import RPi.GPIO as GPIOGPIO.setmode(GPIO.BCM)button = 4GPIO.setup(button, GPIO.IN,pull_up_down=GPIO.PUD_UP)press_times=0while True:if GPIO.input(button) == 0:pre
阅读更多...
树莓派用CSI摄像头,ROS调用时报错Could not find vchostif library
使用树莓派4B,ubuntu20.04下,使用CSI摄像头参考: https://blog.csdn.net/qq_52785580/article/details/122648288 在编译库时,要是碰到错误 Could not find vchostif library 说明没有安装相关库, 执行: sudo apt-get install libraspberrypi-d
阅读更多...