Skip to content

Convert _READ_CMD to bytes to work with memview (Blinka) #6

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

Merged
merged 2 commits into from
Jul 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions adafruit_sgp40.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,10 @@
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SGP40.git"

_WORD_LEN = 2

# no point in generating this each time
_READ_CMD = [
0x26,
0x0F,
0x80,
0x00,
0xA2,
0x66,
0x66,
0x93,
] # Generated from temp 25c, humidity 50%
# Generated from temp 25c, humidity 50%
_READ_CMD = b"\x26\x0F\x80\x00\xA2\x66\x66\x93"


class SGP40:
Expand Down