-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing requestFrom overloaded function #3232
Comments
@jrockinl the official Arduino reference arduino.cc WireRequestFrom does not list that variant? Where is it defined? It looks to me that adafruit made a variant of the Chuck. |
No, it wasn't adafruit that created it. I found it in the arduino wire.cpp.h in the official Arduino files for at very least, Uno, Mega2560 (1.6.23) and Due (1.6.12).
On Thursday, September 19, 2019, 2:01:25 PM CDT, chuck todd <[email protected]> wrote:
@jrockinl the official Arduino reference arduino.cc WireRequestFrom does not list that variant? Where is it defined?
It looks to me that adafruit made a variant of the Wire() object.
Chuck.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@jrockinl It's not part of documented arduino/ArduinoCore-API . Chuck. |
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions. |
Hardware:
Board: ESP32 and ESP 8266
Core Installation version: all
IDE name: Arduino IDE
Flash Frequency: n/a
PSRAM enabled: n/a
Upload Speed: n/a
Computer OS: n/a
Description:
While trying to fix Arduino Due problem with a touch sensor MPR121, I found a function in the Wire library that handled the condition that failed. The MPR121 library did not handle I2C Restart bits properly and actually created a stop and a start. There are i2C devices that toss away data to be read if the read (preceded by a write of desired address) is not followed by Restart bit.
The fixed MPR121 library (Adafruit_MPR121) works for many boards now but seems if fails on ESP32 and ESP8266 because the Wire library doesn't have the following Arduino function:
uint8_t TwoWire::requestFrom(uint8_t address, uint8_t quantity, uint32_t iaddress, uint8_t isize, uint8_t sendStop)
Sketch:
MPR121test.zip
The text was updated successfully, but these errors were encountered: