转换器电源连接到PI的5V(引脚4)和GND(引脚6) 从GPiozero Import Button from Picamera Import Picameraimport TimeButton =按钮(26)使用Picamera()作为相机:Camera.Resolution =(4056,3040)Camera.framerate = 5帧= int(time.time())camera.start_preview()时 true:button.wait_for_press()camera.Capture(' /home/pi/pictures/%03d.jpg'%帧)帧+ = 1