Private
Public Access
2
0

i2c: Work started on using pinmap with i2c

* Update examples and swig interface.

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>
This commit is contained in:
Thomas Ingleby
2014-05-02 16:07:18 +01:00
parent 1005df1652
commit 64d3c78ca9
7 changed files with 80 additions and 9 deletions

View File

@@ -84,7 +84,7 @@ main(int argc, char **argv)
char rx_tx_buf[MAX_BUFFER_LENGTH];
maa_i2c_context *i2c;
i2c = maa_i2c_init();
i2c = maa_i2c_init(0);
maa_i2c_address(i2c, HMC5883L_I2C_ADDR);
rx_tx_buf[0] = HMC5883L_CONF_REG_B;