Newbee I2C questions #3882
Replies: 1 comment
-
Posted at 2014-06-26 by @gfwilliams
Yes, but you'll have to use I'd strongly recommend that you just use I2c2 on B10 and B11.
I2C3 is for other chips/boards that have it - the Espruino board doesn't.
Do you have an example of what doesn't work? I2c2 definitely should be fine.
It can be on B6/B7 or B8/B9 and is configurable by Posted at 2014-06-27 by user7114
Any particular reason why? BTW ... I think I resolved the I2C pins. Posted at 2014-06-27 by @gfwilliams 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 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. Posted at 2014-06-27 by user7114
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-06-26 by user7114
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
Beta Was this translation helpful? Give feedback.
All reactions