File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1+ import smbus2
2+ import time
3+
4+ bus = smbus2 .SMBus (1 )
5+
6+ while True :
7+ bus .write_byte_data (0x57 , 0x03 , 0x02 )
8+ bus .write_byte_data (0x57 , 0x21 , 0x01 )
9+ while bus .read_byte_data (0x57 , 0x01 ) == 0 :
10+ print ("Waiting..." )
11+ time .sleep (0.5 )
12+ print ("read" )
13+
Original file line number Diff line number Diff line change 1+ 0.0.4
2+ -----
3+
4+ * Bugfix: fix timeout bug in get_temperature(), requires i2cdevice>=0.0.7
5+
160.0.3
27-----
38
Original file line number Diff line number Diff line change 55import time
66
77
8- __version__ = '0.0.3 '
8+ __version__ = '0.0.4 '
99
1010CHIP_ID = 0x15
1111I2C_ADDRESS = 0x57
Original file line number Diff line number Diff line change 3939
4040setup (
4141 name = 'max30105' ,
42- version = '0.0.3 ' ,
42+ version = '0.0.4 ' ,
4343 author = 'Philip Howard' ,
4444 author_email = 'phil@pimoroni.com' ,
4545 description = """Python library for the MAX30105 Smoke/Pulse Detector""" ,
You can’t perform that action at this time.
0 commit comments