embd: github.com/kidoman/embd/sensor/bmp180 Index | Files

package bmp180

import "github.com/kidoman/embd/sensor/bmp180"

Package bmp180 allows interfacing with Bosch BMP180 barometric pressure sensor. This sensor has the ability to provided compensated temperature and pressure readings.

Index

Package Files

bmp180.go

type BMP180 Uses

type BMP180 struct {
    Bus  embd.I2CBus
    Poll int
    // contains filtered or unexported fields
}

BMP180 represents a Bosch BMP180 barometric sensor.

func New Uses

func New(bus embd.I2CBus) *BMP180

New returns a handle to a BMP180 sensor.

func (*BMP180) Altitude Uses

func (d *BMP180) Altitude() (float64, error)

Altitude returns the current altitude reading.

func (*BMP180) Close Uses

func (d *BMP180) Close()

Close.

func (*BMP180) Pressure Uses

func (d *BMP180) Pressure() (int, error)

Pressure returns the current pressure reading.

func (*BMP180) Run Uses

func (d *BMP180) Run()

Run starts the sensor data acquisition loop.

func (*BMP180) Temperature Uses

func (d *BMP180) Temperature() (float64, error)

Temperature returns the current temperature reading.

Package bmp180 imports 5 packages (graph) and is imported by 3 packages. Updated 2017-05-15. Refresh now. Tools for package owners.