-
Notifications
You must be signed in to change notification settings - Fork 288
Chunks not working on ESP32 #64
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
Comments
erm, should probably pass |
It's passing through to the actual read start here: Adafruit_BusIO/Adafruit_I2CDevice.cpp Line 193 in b903c7e
But seems to be more fundamentally broken. Better example. Using a Feather ESP32. Nothing fancy, just try a read of 32 bytes: #include <Wire.h>
#define WIRE Wire
#define I2C_ADDRESS (0x69)
#define READ_SIZE (32)
void setup() {
Serial.begin(9600);
while(!Serial);
uint8_t buffer[READ_SIZE];
WIRE.begin();
WIRE.requestFrom(I2C_ADDRESS, 32, true);
uint32_t count = 0;
while (WIRE.available() and count < READ_SIZE) {
buffer[count++] = WIRE.read();
}
}
void loop() {
} Change: WIRE.requestFrom(I2C_ADDRESS, 32, true); to: WIRE.requestFrom(I2C_ADDRESS, 32, false); and nothing happens on the bus. Above test done with ESP32 BSP 2.0.0 |
try using something else, esp 2.0.0 broke a ton of stuff |
k, looks right to me, there's a stop in the first one, none in the second |
Yep. Just documenting expected behavior. Qt Py works as expected. Just tried with ESP32 BSP 1.0.6 and same results as with BSP 2.0.0. |
yah ok try |
hey! i know that pr :) it does something different, but not the expected. basically same behavior either way. |
ok please reply to that PR with the deets of what isnt workin |
Closing. For now at least. The base issue for this is in the ESP32 BSP and, per comment here: |
Related:
https://forums.adafruit.com/viewtopic.php?f=25&t=183433
Recreated using pixels_test example from AMG88xx library.
Seems related to usage of
stop
parameter here:Adafruit_BusIO/Adafruit_I2CDevice.cpp
Line 179 in b903c7e
which was not in previous chunk code:
https://github.com/adafruit/Adafruit_AMG88xx/blob/90e9eea8c43b6a173f10029029cec85ab1818823/Adafruit_AMG88xx.cpp#L234
The text was updated successfully, but these errors were encountered: