Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3923

Interfacing (DSI, CSI, I2C, etc.) • Re: i2cset does not work for 16bits?

$
0
0
Hi all,
I am using "i2cset -y 1 0x1a 0x1a 0x1f8 w" to write a 16bits to register(0x1a). Both i2c address and register address are correct, but it gives me error:"Error: Write failed"
if I tried "i2cset -y 1 0x1a 0x00 0x1f" to write a 8 bits to register(0x00), there is no error.
I am wondering how to write a 16bit data to a register. thanks,
Any help will be appreciated!
Not familiar with the command, but one thing jump out at me... 0x1f8 could be interpreted as 12 bits. Did you try 0x01f8 ?
thanks, I did try it, but still it does not work.
Also I tried it in RPI 3B+ and RPI 4B. it still does not work.

Statistics: Posted by ironchef — Thu Mar 14, 2024 7:51 pm



Viewing all articles
Browse latest Browse all 3923

Trending Articles