mlx90614

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

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

Go to latest
Published: Oct 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	I2C_ADDR     = 0x5A
	REG_TAMBIENT = 0x06
	REG_TOBJECT1 = 0x07
	REG_TOBJECT2 = 0x08

	// EEPROM
	REG_EMISSIVITY = 0x24
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	// contains filtered or unexported fields
}

Device wraps an SPI connection.

func New

func New(bus drivers.I2C, addr uint8) *Device

func (*Device) Ambient

func (d *Device) Ambient() float64

func (*Device) Configure

func (d *Device) Configure(emissivity float64) error

func (*Device) Emissivity

func (d *Device) Emissivity() float64

func (*Device) ID

func (d *Device) ID() [4]uint16

func (*Device) Object1

func (d *Device) Object1() float64

func (*Device) Object2

func (d *Device) Object2() float64

func (*Device) Temperature

func (d *Device) Temperature(reg uint8) float64

Jump to

Keyboard shortcuts

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