Permalink
Browse files

Update libraries/Wire/Wire.h

  • Loading branch information...
1 parent f0801e6 commit 3fb87a584deec38481cfbf2317167de8ee3e73ab @edbaafi edbaafi committed Nov 11, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 libraries/Wire/Wire.h
View
@@ -40,8 +40,9 @@ class TwoWire : public Stream
static uint8_t transmitting;
static void (*user_onRequest)(void);
static void (*user_onReceive)(int);
+ static void (*user_onGcallReceive)(int);
static void onRequestService(void);
- static void onReceiveService(uint8_t*, int);
+ static void onReceiveService(uint8_t*, int,uint8_t);
public:
TwoWire();
void begin();
@@ -59,6 +60,7 @@ class TwoWire : public Stream
virtual int peek(void);
virtual void flush(void);
void onReceive( void (*)(int) );
+ void onReceive( void (*)(int), void (*)(int) );
void onRequest( void (*)(void) );
using Print::write;

1 comment on commit 3fb87a5

Owner

edbaafi commented on 3fb87a5 Nov 11, 2011

Overloaded onReceive with second function pointer for TWI "general call" address callback

Please sign in to comment.