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 15fbda5 commit 9af8ab9Copy full SHA for 9af8ab9
Adafruit_I2CDevice.cpp
@@ -70,6 +70,9 @@ bool Adafruit_I2CDevice::detected(void) {
70
#ifdef DEBUG_SERIAL
71
DEBUG_SERIAL.print(F("Address 0x"));
72
DEBUG_SERIAL.print(_addr);
73
+#endif
74
+#ifdef ARDUINO_ARCH_MBED
75
+ _wire->write(0); // forces a write request instead of a read
76
#endif
77
if (_wire->endTransmission() == 0) {
78
0 commit comments