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 e23f2e9 commit cdc21a6Copy full SHA for cdc21a6
Wire.cpp
@@ -9,13 +9,16 @@
9
// STL headers
10
// C headers
11
// Framework headers
12
+#include <WireQueue.h>
13
// Library headers
14
// Project headers
15
// This component's header
16
#include <Wire.h>
17
18
TwoWire Wire;
19
20
+extern WireQueue theWireQueue;
21
+
22
/****************************************************************************/
23
TwoWire::TwoWire()
24
{
@@ -47,8 +50,9 @@ uint8_t TwoWire::requestFrom(int, int)
47
50
48
51
return 0;
49
52
}
-void TwoWire::send(uint8_t)
53
+void TwoWire::send(uint8_t val)
54
55
+ theWireQueue.send(val);
56
57
void TwoWire::send(uint8_t*, uint8_t)
58
@@ -65,7 +69,7 @@ uint8_t TwoWire::available(void)
65
69
66
70
uint8_t TwoWire::receive(void)
67
71
68
- return 0;
72
+ return theWireQueue.receive();
73
74
void TwoWire::onReceive( void (*)(int) )
75
0 commit comments