simple spi with multiple devices
Posted: Fri Oct 08, 2021 7:22 pm
Hello,
I'm working with the esp idf 4.3 example hd_eeprom. I've got 3 different devices connected to the spi bus with separate chip selects. Is there a simpler example that shows how to init the bus, read and write bytes or sequences of bytes to a particular device, one at a time by only changing the respective chip select for the device being talked to? The hd_eeprom example seems taylored to one device only and is a bit difficult to follow. Any simpler code examples would be appreciated.
Thanks
I'm working with the esp idf 4.3 example hd_eeprom. I've got 3 different devices connected to the spi bus with separate chip selects. Is there a simpler example that shows how to init the bus, read and write bytes or sequences of bytes to a particular device, one at a time by only changing the respective chip select for the device being talked to? The hd_eeprom example seems taylored to one device only and is a bit difficult to follow. Any simpler code examples would be appreciated.
Thanks
Code: Untitled.c Select all