ina219

package
v0.2.36 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package ina219 implements an ina219 voltage/current/power monitor sensor - typically used for battery state monitoring. Datasheet can be found at: https://www.ti.com/lit/ds/symlink/ina219.pdf Example repo: https://github.com/periph/devices/blob/main/ina219/ina219.go

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 {
	Board   string `json:"board"`
	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