Hi!
I have one camera connected to port A and the other to port C.
I commented the lines concerning the unused ports.
The AdapterTestDemo.py code is the following:
import RPi.GPIO as gp
import os
gp.setwarnings(False)
gp.setmode(gp.BOARD)
gp.setup(7, gp.OUT)
gp.setup(11, gp.OUT)
gp.setup(12, gp.OUT)
gp.setup(15, gp.OUT)
gp.setup(16, gp.OUT)
gp.setup(21, gp.OUT)
gp.setup(22, gp.OUT)
gp.output(11, True)
gp.output(12, True)
gp.output(15, True)
gp.output(16, True)
gp.output(21, True)
gp.output(22, True)
def main():
print(“Start testing the camera A”)
i2c = “i2cset -y 1 0x70 0x00 0x04”
os.system(i2c)
gp.output(7, False)
gp.output(11, False)
gp.output(12, True)
capture(1)
#print(“Start testing the camera B”)
#i2c = “i2cset -y 1 0x70 0x00 0x05”
#os.system(i2c)
#gp.output(7, True)
#gp.output(11, False)
#gp.output(12, True)
#capture(2)
print(“Start testing the camera C”)
i2c = “i2cset -y 1 0x70 0x00 0x06”
os.system(i2c)
gp.output(7, False)
gp.output(11, True)
gp.output(12, False)
capture(3)
#print(“Start testing the camera D”)
#i2c = “i2cset -y 1 0x70 0x00 0x07”
#os.system(i2c)
#gp.output(7, True)
#gp.output(11, True)
#gp.output(12, False)
#capture(4)
def capture(cam):
cmd = “raspistill -o capture_%d.jpg” % cam
os.system(cmd)
if name == “main”:
main()
gp.output(7, False)
gp.output(11, False)
gp.output(12, True)
Only the preview of camera A shows up, and nothing happens with camera C.
I also tried connecting the second camera to port B but the same happens.
I really need to get this setup running, thanks in advance!