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

General discussion • 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!

Statistics: Posted by ironchef — Sat Mar 09, 2024 2:43 am



Viewing all articles
Browse latest Browse all 4151

Trending Articles