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?
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.