-
• #2
Question #1: Can I used (both) two I2C buses (B6 B7) & (B7 B8) ?
Yes, but you'll have to use
I2C1.setup
to set up I2C each time you want to use the other bus (I guess you mean you mean B6/B7 + B8/B9).I'd strongly recommend that you just use I2c2 on B10 and B11.
I2C Class shows instances of I2C1,I2C2&I2C3
I2C3 is for other chips/boards that have it - the Espruino board doesn't.
software rejects using I2C2 but likes only I2C1?
Do you have an example of what doesn't work? I2c2 definitely should be fine.
The Espruino board layout pins only shows "same" I2C1 on both pins (B6 B7) and (B8 B9)?
It can be on B6/B7 or B8/B9 and is configurable by
I2C1.setup
- but it can't be on both at the same time, and it can't be on B6/B9 (for instance) -
• #3
I'd strongly recommend that you just use I2c2 on B10 and B11.
Any particular reason why?
BTW ... I think I resolved the I2C pins.
I2c1 is used only for B6/7 or B8/9
I2C2 is used only for B10/11
Both I2C buses can used separately or together. (AND) -
• #4
Yes - that's correct.
What I meant was: if you need 2 I2C busses then use I2C1 and I2C2 together rather that trying to set up I2C1 to swap between B6/7 and B8/9. It's quicker and simpler than having to use
I2C.setup
each time.I'm not sure if you need to use 2 busses anyway... The idea of the bus is that you can connect more than one device to it - the only time you'd need two is if you have two devices with the same address.
-
• #5
Due to I2C addressing device conflicts, I need 2 I2c buses in my program.
Due to I2C addressing device conflicts, I need 2 I2c buses in my program.
Question #1: Can I used (both) two I2C buses (B6 B7) & (B7 B8) ?
If possible, state the instances I can use for both buses.
Question #2: I2C Class shows instances of I2C1,I2C2&I2C3
and since the Espruino has just 2 buses (I2C1 & I2C2) that can
be used BUT the software rejects using I2C2 but likes only I2C1?
Question #3: The Espruino board layout pins only
shows "same" I2C1 on both pins (B6 B7) and (B8 B9)?
Windows 8.1 64 Bit
Chrome 35.0.1916.153 m (no beta)
Espruino 1v65
Web-IDE v 44
Board: Espruino