rpi_i2c_set: Write data to an i2c device

View source: R/rpi_i2c_set.R

rpi_i2c_setR Documentation

Write data to an i2c device

Description

Writes a byte, a word, or other data block to an i2c device.

Usage

rpi_i2c_set(chip_address, data_address, value, data_size = "b")

Arguments

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"

Value

void

Examples




mnr/rpigpior documentation built on May 3, 2024, 12:14 a.m.