rpi_i2c_set | R Documentation |
Writes a byte, a word, or other data block to an i2c device.
rpi_i2c_set(chip_address, data_address, value, data_size = "b")
chip_address |
an integer between 0x03 and 0x77. Use i2cdetect -y 1 to identify the address |
data_address |
an integer between 0x00 and 0xFF. This will come from the chip documentation |
value |
a byte (0xff), a word (0xffff), a SMBus (32 bytes) or I2C Block |
data_size |
data_size must be one of "b", "w", "s", or "i" |
void
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.