I want to use capsense chip as a slave with I2C comminication. There are five capsense button. If I pressed first button 1. led working .If I pressed second button 2. led working. How do I code for master and slave. I don't know I2C comminication. I should send 1 byte for every button. I would appreciate if you give an idea.Thanks
Aargh! This should have been a numbered list. And in the HTML it even is marked as such! Who had the idea to style numbered list without numbers?
Oh, so you want to connect two PSoCs with each other? I think that, then, the Slave should read the data the master writes, shouldn't it?
No, I don't have an example handy, but maybe one of the examples for the I2C component may help?
Yes I want to use two chip as a master and slave. I try to send 1 byte when pressed button and led will work . But when i send to data form master, all leds working side of slave. When i pressed button1, led1 will work. When I pressed button2, led2 two will work. I want to do this.When i pressed button,probably I should send to differents data side of master.But i can't do this.
Since the code you posted has no receive part on the slave, it cannot be the one you used to get it work with one button. And since you got it working already (for a single button at least), what is your real question anyway? There is, AFAIK, no existing example for the exact requirements you have. So no-one here can point you to one...