bme280

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package bme280 implements a bme280 sensor for temperature, humidity, and pressure. Code based on https://github.com/sparkfun/SparkFun_bme280_Arduino_Library (MIT license) and also https://github.com/rm-hull/bme280 (MIT License)

Package bme280 is only available on Linux.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.2.36

type Config struct {
	// The I2C bus is almost certainly numeric (e.g., the "7" in /dev/i2c-7), but it is nonetheless
	// possible for the OS to give its I2C buses a non-numeric identifier, so we store it as a
	// string.
	I2CBus  string `json:"i2c_bus"`
	I2cAddr int    `json:"i2c_addr,omitempty"`
}

Config is used for converting config attributes.

func (*Config) Validate added in v0.2.36

func (conf *Config) Validate(path string) ([]string, error)

Validate ensures all parts of the config are valid.

Jump to

Keyboard shortcuts

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