Peter, what is the syntax for an i2cset -m command. How do you specify the bits to be masked from value ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Peter, what is the syntax for an i2cset -m command. How do you specify the bits to be masked from value ?
Hello Alan,
The syntax for this parameter is explained here:
https://linux.die.net/man/8/i2cset
I expect your command to look something like:
i2cset -y -m 0000111111111111 2 0x40 [value] w
The first 4 zeros of mask mean that the first 4 bits of [value] won't be written to the configuration register.
Best,
Peter