On the mini breakout board, I have used both i2c buses (1 and 6) from Linux, as well as bus 8 through the MCU, all without any initialization beyond calling mraa_i2c_init on the Linux side. The device I am working with is the LSM9DS0 inertial/mag-field sensor.
i2cdetect was able to detect my device at both addresses that it uses without issue.
Thanks for your response. Currently I am struggling. Related to the the Arduino Breakout Board (the big one):
When using mraa:
- Is mraa_i2c_init(0) allowing access to the I2C interface marked red above?
- Is mraa_uart_init(0) allowing access to the serial interface marked orange above?
- Do I have to consider anything else when trying to use these interfaces with mraa?
Why should I use mraa_uart_init as well as mraa_uart_get_dev_path instead of directly opening /dev/ttyMFD1 within my program?
mraa will do the initialisation for i2c-1 and i2c-6 for you, that's the whole reason for using it. Whilst stuff might 'work' with i2c-detect it depends on the current muxing setup and what other IO you've set up etc... Same is true for uart using mraa essentially means you're not relying on the boards status, mraa 0.7.x does have read/write/baudrate config options too. You can grab a beta build bhere - intelgalactic/ for poky 1.7 (probably works on 1.6).