Serial.printf("After trying to write bytes to 0x%02X: err = %d at %lu ms\n", return value from endTransmission is 4 (Other problem) This doesn't work: SDA and SCL pins do not wiggle and On the other hand, the following code does not wiggle the SDA or SCL pins. It prints the proper return value of zero, the I2C pins show the transfer and show the ACK by the device. If I have a device with that address attached to the I2C pins (SDA on D4, SCL on D5), all is good. Serial.printf("I2C probe of 0x%02X returned %u at %lu ms\n", Return value of zero indicates successful ACK by device Scope display of SCL and SDA are nominal Here’s my problem: Can’t get the I2C to work. Using with Arduino IDE, basic operations are OK (Blink LED_BUILTIN, Do various examples like reading internal Temperature, NeoPixel stuff, etc.)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |