Closed ladyada closed 3 years ago
(besides that, this core works really well! good job :)
Thumbs up to this!
Thanks, @ladyada and @brandonplank!
I don't really have many I2C devices to test on, but I've run it against the other I2C port on the Pico and patch #40 seems to work properly with special-cased 0-len I2C reads. (I ran this I2S scanner: https://gist.github.com/tfeldmann/5411375 and a few ad-hoc tests).
Would one of you be able to test on your own setup and report back, please?
Yep! Let me get everything hooked up on my end and i'll let you know!
tested, the sensors i tried before are now working :)
Thanks for the update @ladyada !
a common thing done in arduino libraries is performing a zero-byte-write, like this https://github.com/arduino-libraries/ArduinoECCX08/blob/master/src/ECCX08.cpp#L440 or in address scanning/checking
the RP2040 I2C peripheral does not permit that, so for writes of 0 bytes, it must be bitbanged, we've done so in CircuitPython and MicroPython does the same
right now, because of this bug, a lot of libraries (including a lot of Adafruit ones) will not work, they will fail on the address detection step!
(cc @sandeepmistry in case Arduino's core needs it too)