What is the easiest way to talk to multiple slave devices using and Arduino platform (or TI Energia platform). the issue I am thinking about is having to keep passing the new CS pin the SPI begin function. Any help is much appreciated.
Thanks
Kas
What is the easiest way to talk to multiple slave devices using and Arduino platform (or TI Energia platform). the issue I am thinking about is having to keep passing the new CS pin the SPI begin function. Any help is much appreciated.
Thanks
Kas
Hi Kas!
I don't think I've done it with these platforms, but on others I've usually done it "out-of-band" so to speak, i.e. control the various CS pins using digitalWrite or whatever (not using the SPI API), and then invoke the SPI API commands as usual to perform the data transfer.
In other words, SPI API and my digitalWrite operate like ships in the night. Maybe not the best way, but it seemed straightforward.
The API's in Arduino/Energia may be richer, but if they are not, then maybe a digitalWrite method is sufficient.
Hi Kas!
I don't think I've done it with these platforms, but on others I've usually done it "out-of-band" so to speak, i.e. control the various CS pins using digitalWrite or whatever (not using the SPI API), and then invoke the SPI API commands as usual to perform the data transfer.
In other words, SPI API and my digitalWrite operate like ships in the night. Maybe not the best way, but it seemed straightforward.
The API's in Arduino/Energia may be richer, but if they are not, then maybe a digitalWrite method is sufficient.