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.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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.