We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af7d96d commit d4e47e2Copy full SHA for d4e47e2
libraries/Wire/src/Wire.cpp
@@ -372,7 +372,11 @@ void TwoWire::onRequest( void (*function)(void) )
372
user_onRequest = function;
373
}
374
375
+bool TwoWire::isBusy(void)
376
+{
377
+ return twi_isSollicited();
378
+}
379
+
380
// Preinstantiate Objects //////////////////////////////////////////////////////
381
382
TwoWire Wire = TwoWire();
-
libraries/Wire/src/Wire.h
@@ -75,6 +75,7 @@ class TwoWire : public Stream
75
virtual void flush(void);
76
void onReceive( void (*)(int) );
77
void onRequest( void (*)(void) );
78
+ bool isBusy(void);
79
80
inline size_t write(unsigned long n) { return write((uint8_t)n); }
81
inline size_t write(long n) { return write((uint8_t)n); }
0 commit comments