sensors

package
v0.0.0-...-9b663ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BH1750

func BH1750(iotSDK *sdk.IotSDK, r Adaptor, bus ...int)

BH1750 get light data

func BME280

func BME280(iotSDK *sdk.IotSDK, r Adaptor, bus ...int)

BME280 get temperature and humidity

func SHT3x

func SHT3x(iotSDK *sdk.IotSDK, r Adaptor, bus ...int)

SHT3x get temperature and humidity

Types

type Adaptor

type Adaptor interface {
	// Name returns the label for the Adaptor
	Name() string
	// SetName sets the label for the Adaptor
	SetName(n string)
	// Connect initiates the Adaptor
	Connect() error
	// Finalize terminates the Adaptor
	Finalize() error
	GetConnection(address int, bus int) (device i2c.Connection, err error)
	GetDefaultBus() int
}

Adaptor is the interface that describes an adaptor in gobot

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL