Trying to write a byte to a 16-bit address on an I2C device (OV5640 camera) using i2cset. I can successfully read from the device registers using the following sequence (read byte from device address 0x3c and register address 0x3030):
i2cset -v -f 1 0x3c 0x30 0x30
i2cget -v -f 1 0x3c
To write to the device, I use this sequence (write byte 0x40 to device address 0x3c and register address 0x3030):
i2cset -v -f 1 0x3c 0x30 0x30
i2cset -v -f 1 0x3c 0x40
This sequence does not show any errors but when the address is read again, the value is unchanged. Can anyone provide any insight on the correct i2cset syntax to use when writing to this device?