Skip to content

stratoberry/go-bmp085

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#go-bmp085

A port of Adafruit's Python library for BMP05 to Go.

Installation

$ go get github.com/stratoberry/go-bmp085

i2c library by gmcbay is the only dependency.

Usage

Library is similar to the one by Adafruit but with a few minor changes to match Go's conventions.

dev, _ := bmp085.Init(0x77, 0, bmp085.MODE_STANDARD)
temperate, pressure, altitude, _ = dev.GetData()

For a full example take a look at the examples/main.go file in the repository.

About

Port of Adafruit's Python library for BMP05 to Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages