I’m starting to use openmv and i need to know if the camera can works good in mode spi slave. I have tested more things with openmv IDE like for example:
SPI.init(SPI.SLAVE,polarity=0, phase=1, bits=8, firstbit=SPI.MSB, ti=False, crc=None)
spi = SPI(2, SPI.SLAVE, baudrate=600000, polarity=0, phase=1)
spi = pyb.SPI(2, pyb.SPI.SLAVE, polarity=0, phase=1) pin = pyb.Pin("P3", pyb.Pin.IN, pull=pyb.Pin.PULL_UP)
but it always give me the same OSError : 16 , and the bus is not busy.
I have the problem with this line of my code too: data = spi.send_recv(b’\xff\xff’). The ide show me the same error. I have tested it changing the pins on hardware but i dont get it works well.
I need your advices and help.
Thank you in advice