mcp300x

package
v0.0.0-...-25817fc Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mcp300x implements a sensor model supporting mcp300x adc sensor.

Index

Constants

This section is empty.

Variables

View Source
var Model = resource.NewModel("hazalmestci", "sensor", "mcp3001-2-go")

Functions

This section is empty.

Types

type Mcp300xConfig

type Mcp300xConfig struct {
	Pins       map[string]int `json:"pins"`
	SpiBus     string         `json:"spi_bus"`
	ChipSelect string         `json:"chip_select"`
}

func (*Mcp300xConfig) Validate

func (config *Mcp300xConfig) Validate(path string) ([]string, error)

Jump to

Keyboard shortcuts

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