PYNQ icon indicating copy to clipboard operation
PYNQ copied to clipboard

IIC 16 bit address pynq.lib.iic

Open JackBonnellDevelopment opened this issue 2 years ago • 1 comments

Do you have a work around for IIC addresses larger than 8 bit as imx219 (RPI Cam V2) needs to be configured using 16bit addresses.

`OverflowError Traceback (most recent call last) in ----> 1 test.send(0x479B, 0x05, 8, 0)

/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/lib/iic.py in send(self, address, data, length, option) 99 100 """ --> 101 sent = AxiIIC._lib.XIic_Send( 102 self._virtaddr, address, data, length, option) 103 if sent == 0:

OverflowError: integer 18331 does not fit 'unsigned char' `

JackBonnellDevelopment avatar Apr 12 '22 14:04 JackBonnellDevelopment

Hi @JackBonnellDevelopment

Can you please post your question on https://discuss.pynq.io/?

mariodruiz avatar Apr 12 '22 14:04 mariodruiz