When I try to read the camera I got the following debug error on the screen "received unexpected camera control callback event 0x4f525245", can anybody help how to resolve this issue. or is this raspberry pi board has problem.
When I try to read the camera I got the following debug error on the screen "received unexpected camera control callback event 0x4f525245", can anybody help how to resolve this issue. or is this raspberry pi board has problem.
I would like to test the following code on the bad camera:
#!/usr/bin/env pythonimporttime
importRPi.GPIO as GPIO
# Use GPIO numbering
GPIO.setmode(GPIO.BCM)
# Set GPIO for camera LED
# Use 5 for Model A/B and 32 for Model B+
CAMLED =5
# Set GPIO to output
GPIO.setup(CAMLED, GPIO.OUT, initial=False)
# Five iterations with half a second
# between on and off
fori inrange(5):
GPIO.output(CAMLED,True) # On
time.sleep(0.5)
GPIO.output(CAMLED,False) # Off
time.sleep(0.5)
Does the light blink?
Clem
here's the edited code lemme know if I screwed it up - it ran without
error, though....
import time
import os
import RPi.GPIO as GPIO
Use GPIO numbering
GPIO.setmode(GPIO.BCM)
Set GPIO for camera LED
Use 5 for Model A/B and 32 for Model B+
CAMLED =5
Set GPIO to output
GPIO.setup(CAMLED, GPIO.OUT, initial=False)
Five iterations with half a second
between on and off
for i in range(5):
GPIO.output(CAMLED,True) # On
time.sleep(0.5)
GPIO.output(CAMLED,False) # Off
time.sleep(0.5)
here's the edited code lemme know if I screwed it up - it ran without
error, though....
import time
import os
import RPi.GPIO as GPIO
Use GPIO numbering
GPIO.setmode(GPIO.BCM)
Set GPIO for camera LED
Use 5 for Model A/B and 32 for Model B+
CAMLED =5
Set GPIO to output
GPIO.setup(CAMLED, GPIO.OUT, initial=False)
Five iterations with half a second
between on and off
for i in range(5):
GPIO.output(CAMLED,True) # On
time.sleep(0.5)
GPIO.output(CAMLED,False) # Off
time.sleep(0.5)
the paste added the "1"'s...
Please would you open a brand new question just for you. We kind of bootlegged someone else and not polite. Over there I will carefully post code and dialogue.
Clem
#!/usr/bin/env python
importtime
importRPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
# Set GPIO for camera LED
# Use 5 for Model A/B and 32 for Model B+
CAMLED =5
# Set GPIO to output
GPIO.setup(CAMLED, GPIO.OUT, initial=False)
# Five iterations with half a second
# between on and off
for i in range(5):
GPIO.output(CAMLED,True) # On
time.sleep(0.5)
GPIO.output(CAMLED,False) # Off
time.sleep(0.5)