Pages: 1 [2]   Go Down
Author Topic: Wire.send String problem  (Read 3333 times)
0 Members and 1 Guest are viewing this topic.
Worcester, MA
Offline Offline
God Member
*****
Karma: 3
Posts: 623
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

I2C GPS Shield

Checkout my Open Source GPS Tracker on Kickstarter

Global Moderator
Offline Offline
Brattain Member
*****
Karma: 484
Posts: 18768
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


Pages: 1 [2]   Go Up
Jump to: