8000
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 4bafbe5 commit 9ba8f77Copy full SHA for 9ba8f77
libraries/Wire/Wire.cpp
@@ -30,6 +30,13 @@ extern "C" {
30
#include "twi.h"
31
#include "Wire.h"
32
33
+
34
+//Some boards don't have these pins available, and hence don't support Wire.
35
+//Check here for compile-time error.
36
+#if !defined(PIN_WIRE_SDA) || !defined(PIN_WIRE_SCL)
37
+#error Wire library is not supported on this board
38
+#endif
39
40
// Initialize Class Variables //////////////////////////////////////////////////
41
42
uint8_t TwoWire::rxBuffer[BUFFER_LENGTH];
0 commit comments