Multiple Peripherals to one Central: Best method? | Cypress Semiconductor
Multiple Peripherals to one Central: Best method?
I've been looking into some of the 100 Projects designs and am still having trouble figuring out the best method for having many Periphrials communicating with one Central device. Simply put as an example, I want to have 4 chips each with their own switch, and have a Central with 4 LEDs. Each switch controls a single LED. I also need to tag each switch, so initially, Central scans, and tags the first powered/discovered switch with an order number that will then be stored in the switch itself. Afterward, if any switch state is changed, Central will know which LED its paired to. Any direction would be appreciated.