SparkFun Forums 

Where electronics enthusiasts find answers.

Tips, tricks, & best best practices using Artemis with your board designs.
User avatar
By benedic2
Hello, I am fairly new to using redboards. I have a redboard Artemis Nano. the site says there are 4 i2c buses on the board (including the QUIC connector). I was wondering if anyone knows of a guide, example, video, tutorial etc... on how to use more than one i2c bus? It seems obvious, but I have not found too much help.

BTW, the reason is I have two sensors with the same i2c address, so to use them both I would like to use the QUIC connector and a second i2c bus.

User avatar
By liquid.soulder
Declare a new wire port using the IOM instance that you want like this:

TwoWire myWire(N);

Choose N depending on which pins you want to use (there are 3 options that aren't on the qwiic connector) for example pins 9 and 10 on the Nano are connected to IOM# N=4 ... s-Nano.pdf

Then you use "myWire" just like you would the normal "Wire"
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]