Go Down

Topic: Wire.send String problem (Read 3730 times) previous topic - next topic

wayneft

Quote
Quote
Is it possible for a slave to send data to the master without the master actually asking for it?
No. Slaves never initiate communication.


You could set up the slave to generate an interrupt signal to the master.  When the master sees the interrupt it knows new data is available for it to go get.  This is how a lot of I2C slave devices operate.
I2C GPS Shield

Checkout my Open Source GPS Tracker on Kickstarter

Nick Gammon

See my page here:

http://www.gammon.com.au/forum/?id=10896

The "slave" can be a master as well. Thus either end can send to each other, whenever they want to. In either case an interrupt is generated.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

Go Up