Superdat
Member
Hi
I've decided to have a go at programming a BME 280 Humidity and Temperature sensor. It has both I2C and SPI interfaces.
So far I've only used SPI with any success, although I didn't make a good choice of hardware for my the one attempt with I2C.
I've only used SPI with MAX7219/21 so the use of Slave Select (CS) was handled by Oshonsoft.
After some research I've come to the conclusion that I need a SS for each ISP device. In this case one for Max7221 and one for the BME 280.
Is this correct?
I'm aware that Oshonsoft uses software SPI.
I can't see any reference to an address for the Max7221 device. The only address I can find are to registers or banks of Max7221.
Is it possible to use Oshonsoft to control both devices or have I got to use Hardware SPI?
I've decided to have a go at programming a BME 280 Humidity and Temperature sensor. It has both I2C and SPI interfaces.
So far I've only used SPI with any success, although I didn't make a good choice of hardware for my the one attempt with I2C.
I've only used SPI with MAX7219/21 so the use of Slave Select (CS) was handled by Oshonsoft.
After some research I've come to the conclusion that I need a SS for each ISP device. In this case one for Max7221 and one for the BME 280.
Is this correct?
I'm aware that Oshonsoft uses software SPI.
I can't see any reference to an address for the Max7221 device. The only address I can find are to registers or banks of Max7221.
Is it possible to use Oshonsoft to control both devices or have I got to use Hardware SPI?