Working with multiple I2C and SPI libraries

Hello there,
I am still building my arduino wireless weather sensor, and i've ecountered some problems:
I'm still bright(theoretically) when it comes how to work with multiple spi devices, you just have to make two independent CSN pins, and make low each when i want to use them. BUT, what if i use two, or more spi devices each with libraries?
For example, i have an I2C barometric sensor, I2C humidity module, analog temperature probe, and SPI 2.4Ghz wireless module. Plus maybe more spi or i2c sensors(soil humidity, rain sensor, lightmeter) every with his own library.

How is it doable with a mega 2560?
Can i even run multiple i2c devices simultaneously?

siletto:
Can i even run multiple i2c devices simultaneously?

That's the whole point of I2C; having multiple devices (up to 127) communicating with each other using only 2 wires.

Then I just have to connect ell the i2c devices to the same data and clock line, and the libraryes will do the rest for me? I wonder if i have to configure(??) something in the libraries to work with each other at the same time same bus.

If the devices have different addresses they should just work. Assuming you don't try to talk to more than one at a given moment.

SPI is a bit different.

You need a separate slave select line for each SPI device.

You don't include different libs for each of the I2C or SPI devices. You include one copy of an I2C lib and one copy of an SPI lib.

Mark