Skip to content

olkiz/bmp180-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raspberry Pi Python BMP180 library

Usage:

from bmp180 import BMP180

bmp = BMP180() # default 1st i2c bus, mode = BMP180_MODE.ULTRA_LOW_POWER
print(bmp.readTemperature(), "\t", bmp.readPressure(), "\t", bmp.calculateAbsoluteAltitude())

Or in case of other i2c bus (2 for example)

bmp = BMP180(2)

If you want to have other mode:

bmp = BMP180(2, BMP180_MODE.STANDARD)
# or
bmp.setMode(BMP180_MODE.HIGH_RESOLUTION)

Dependencies

Packages:

  • smbus2

Also, i2c on device should be enabled.

Installing:

  • git clone https://github.com/olkiz/bmp180-python.git
  • cd bmp180-python
  • pip3 install .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages