Hi, I am trying to use Python with the SMBus2 library in order to communicate with the OV5642 camera on a Raspberry Pi. Although it seems that the SPI side of the camera works well (using the spidev library on Python) there are issues while I am trying to read I2C registers with the SMBus2 library, what I read are just zeros.
The steps that I am trying to do are these:
from smbus2 import SMBus
bus = SMBus(2)
b = bus.read_byte_data(0x3C, register_id)
I am trying to replicate the code inside the "arducam_i2c_word_read()" function in the C code here, but I am struggling and I don't knwo why. Is it possible to use this camera with python?
NOTE: I am tryin to read from the commod registers ids: 0x300A and 0x300B, but just zeros are retrieved.
Hi, I am trying to use Python with the SMBus2 library in order to communicate with the OV5642 camera on a Raspberry Pi. Although it seems that the SPI side of the camera works well (using the spidev library on Python) there are issues while I am trying to read I2C registers with the SMBus2 library, what I read are just zeros. The steps that I am trying to do are these:
I am trying to replicate the code inside the "arducam_i2c_word_read()" function in the C code here, but I am struggling and I don't knwo why. Is it possible to use this camera with python?
NOTE: I am tryin to read from the commod registers ids: 0x300A and 0x300B, but just zeros are retrieved.