1
0
Fork 0
mirror of https://github.com/kidoman/embd synced 2025-07-04 20:37:46 +02:00

documentation changes

This commit is contained in:
Karan Misra 2014-03-23 15:47:58 +05:30
parent 5c8ea918ab
commit d171cfdc90
13 changed files with 177 additions and 33 deletions

View file

@ -38,6 +38,7 @@ const (
pollDelay = 250
)
// BMP085 represents a Bosch BMP085 barometric sensor.
type BMP085 struct {
Bus embd.I2CBus
Poll int
@ -59,6 +60,7 @@ type BMP085 struct {
quit chan struct{}
}
// New returns a handle to a BMP085 sensor.
func New(bus embd.I2CBus) *BMP085 {
return &BMP085{Bus: bus, Poll: pollDelay}
}