Hi to eveybody, i'm using the new liquid crystal library with the following include files and i have changed the ping to work on digital 6 and 7 on arduino uno. #include <Wire.h> #include <LiquidCrystal_I2C.h>
What i would like to do is to connect other devices to the same i2c Bus.
Is there any way to use the softi2cmaster that is used inside the liquid ?
Thanks for any idea
Flavio
I2C devices are talking with Arduino using different addresses on the same "2wire bus".
So, if your LCD is addressed, say by 0x3H, you can address another I2C device using a different address that has to be set up in the Arduino sketch mapping with the devices address.
Some devices come with fixed addresses, some can be set up using jumpers. So find out how to set up different addresses of your I2C devices, use different ones and adjust your sketch accordingly.
I have no experience with softi2cmaster, but rushing through the description it should do what you want to do.
Keep in mind to use different addresses for each I2C device, so your instructions only are accepted by the ones which understand it. (an audio or video device won't understand lcd.print devices and vice versa).
As rpt007 says, I2C is a 'bus', which can have multiple devices connected to it, as long as each device has it's own I2C address. I often use 3 or 4 I2C devices connected to the same pins, without dramas.
You shouldn't need an additional I2C library, just "Wire.h", plus any libraries associated with the individual devices, (like "LiquidCrystal_I2C").