Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Camera board • Re: Libcamera error on Rpi5 when starting the gpiod

$
0
0
On a Pi5 running Bookworm with a V3 camera, this is working OK for me using gpiozero to blink an LED on GPIO21 whilst camera preview is running

Code:

from picamera2 import Picamera2, Previewfrom gpiozero import Device, LEDfrom time import sleeppicam2 = Picamera2()camera_config = picam2.create_preview_configuration()picam2.configure(camera_config)picam2.start_preview(Preview.QTGL)picam2.start()led = LED(21)n=0while n<10:    led.on()    sleep(0.5)    led.off()    sleep(0.5)    n=n+1picam2.capture_file("test.jpg")print("Done")

Statistics: Posted by neilgl — Wed Mar 20, 2024 11:55 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles