tangoo Hello, I want to build a centralized multiroom system with a lot of MOSFETs as well as input buttons and therefore I need at least one large I/O-Expander for my Pi B+ with RasyPlay4. Before ordering and putting a lot effort in a not working setup I would like to know, if I2C is working parallel to I2S and if yes, if it is advisable to use it parallel? As from what I can see my RasyPlay4 goes to the same pins as I2C should go to (SCL/SDA)? Or do I need to go for an SPI-I/O-Expander? Anyone used I2S and I2C at the same time on RPi? Thank you! Stef
XploD tangoo wrote Anyone used I2S and I2C at the same time on RPi? I do. I have a Raspberry Pi 2 and I have Sabre ES9023 DAC connected to I2S and 4x20 LCD on I2C, and it works. I'm also using other GPIO pins for IR receiver and for 5 buttons.
hondagx35 Hi, I2C und I2S are two independent interfaces. There are some DACs that use both, I2S for sound and I2C for volume control. I2C is a multi master / multi slave bus, so many devices can be used in parallel. You only have to be carefull not to use the same address twice. Frank
tangoo Hey everyone, thanks... I can confirm 2 x MCP23017 are perfectly working on Pi2 while playing HQ Music with no noticable effect even on full speed switching. Max i2c "set" frequency for one IC was in bash script (only) 80 hz and in python2 around 1,5 khz (measured with oszi). So python should really be prefered even in small i2c tasks. Greets