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

Misleading example i2c_bmp85.py #1060

Open
OAkyildiz opened this issue Apr 29, 2021 · 1 comment
Open

Misleading example i2c_bmp85.py #1060

OAkyildiz opened this issue Apr 29, 2021 · 1 comment

Comments

@OAkyildiz
Copy link

This is too small of a 'fix' to create a PR
At line 25 of i2c_bmp85.py

x.write(bytearray(b'0xf40x2e'))

is misleading and will create headaches for new users.
Should be

x.write(bytearray([0xf4,0x2e]))`

Otherwise that string literal is not converted to what you want

@Propanu
Copy link
Contributor

Propanu commented May 20, 2021

Thanks @OAkyildiz this is an issue with the example indeed.

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

2 participants