Comments (10)
erm, should probably pass stop
thru there yeah?
from adafruit_busio.
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
from adafruit_busio.
try using something else, esp 2.0.0 broke a ton of stuff
from adafruit_busio.
Just to document behavior on a different platform - Qt Py M0
from adafruit_busio.
k, looks right to me, there's a stop in the first one, none in the second
from adafruit_busio.
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.
from adafruit_busio.
yah ok try
espressif/arduino-esp32#4729 (comment)
from adafruit_busio.
hey! i know that pr :)
espressif/arduino-esp32#5470 (comment)
it does something different, but not the expected. basically same behavior either way.
from adafruit_busio.
ok please reply to that PR with the deets of what isnt workin
from adafruit_busio.
Closing. For now at least. The base issue for this is in the ESP32 BSP and, per comment here:
espressif/arduino-esp32#5702 (comment)
can not be supported for ESP32.
from adafruit_busio.
Related Issues (20)
- Warning at Arduino Every Board HOT 2
- -O2 breaks this lib on atmel M0 HOT 14
- i2cProcQueue >> IntegerDivideByZero HOT 2
- proposal for robustness for I2C setSpeed() HOT 1
- Build warning: `[-Werror=unused-but-set-variable]` HOT 1
- Pointer to hardware SPI not correctly initialized if hardware is available but software SPI is used HOT 3
- If NO_GLOBAL_INSTANCES or NO_GLOBAL_SERIAL is defined, not able to find Serial in Adafruit_BusIO_Register.h HOT 6
- Design intent question: Why malloc? HOT 1
- When building in Platform.io for ESP32, there are type casting issues HOT 1
- Library doesn't work for ESP32 or ESP8266 on PlatformIO HOT 2
- Pico + PN532 + BusIo reading NTAGs
- Version 1.13.2 missing from platformio registry. HOT 3
- BusIO library won't build unless a serial device is configured HOT 4
- DEBUG_SERIAL decimal address printed as hex HOT 1
- Refactor to better separate HW and SW SPI HOT 1
- Adafruit BusIO v1.11.1 breaks begin_SPI() on SAMD51 with BMP388 HOT 5
- pass in an initialised wire instance? HOT 2
- Release 1.11.3 doesn't compile with Arduino 1.8.13 HOT 2
- repository description HOT 1
- issue with compiling the program to ESP8266 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_busio.