Skip to content

Commit 5c1e198

Browse files
authored
Merge pull request #6 from caternuson/iss5
Convert _READ_CMD to bytes to work with memview (Blinka)
2 parents c627e60 + 75c296f commit 5c1e198

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

adafruit_sgp40.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,10 @@
3737
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_SGP40.git"
3838

3939
_WORD_LEN = 2
40+
4041
# no point in generating this each time
41-
_READ_CMD = [
42-
0x26,
43-
0x0F,
44-
0x80,
45-
0x00,
46-
0xA2,
47-
0x66,
48-
0x66,
49-
0x93,
50-
] # Generated from temp 25c, humidity 50%
42+
# Generated from temp 25c, humidity 50%
43+
_READ_CMD = b"\x26\x0F\x80\x00\xA2\x66\x66\x93"
5144

5245

5346
class SGP40:

0 commit comments

Comments
 (0)