i2c_setup()


Configuring I2C

Description

void i2c_setup(int $i2c_id, int $saddr[, string $mode = "sm"])

Parameters

Return Value

none

Example

<?php
include "/lib/sd_340.php";
i2c_setup(0, 0x1e);          // configuring I2C slave address (0x0E)
i2c_setup(0, 0x1e, "fm");      // configuring I2C slave address (0x0E) and fast mode
?>

See also