Skip to content
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

read issue #17

Open
syndycat opened this issue Oct 23, 2017 · 0 comments
Open

read issue #17

syndycat opened this issue Oct 23, 2017 · 0 comments

Comments

@syndycat
Copy link

syndycat commented Oct 23, 2017

I tried to use this library with BME280 from bosch using Arduino Mini and has errors if you read more that 1 byte. For 1 byte read is working fine.

beginTransmission(bmeI2CAddress);
write(0x8E); // Pressure calibration register 2 bytes to read
endTransmission();
requestFrom(bmeI2CAddress, 2);
byte p0 = read();
byte p1 = read();

Here is result of p0 and p1 using arduino Wire
0xDC 0x94

Here is result of p0 and p1 using I2Cmaster
0xDC 0xFF

I noticed that everything that is read after first read() I got FF .
I tried also with readLast() but same faulty data I got.

Any workaround is really appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant