htg3535ch

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Humidity

type Humidity struct {
	ads1115.ADS1115
}

Humidity represents the HTG pin for measure relative humidity in percent

func NewHumidity

func NewHumidity(pin int) Humidity

NewHumidity creates a new Humidity

func (Humidity) Read

func (s Humidity) Read() (float64, error)

Read takes a reading from the underlying ADS1115 and converts the voltage value to a relative humidity reading in percent.

type TemperatureK

type TemperatureK struct {
	TempADS             ads1115.ADS1115
	BatchResistanceOhms float64
	VCCVolts            func() (float64, error)
}

TemperatureK represents the HTG pin for measure temperature in Kelvins

func NewCalibrationTemperatureK

func NewCalibrationTemperatureK(tPin, vccPin int) TemperatureK

NewCalibrationTemperatureK creates a new TemperatureK with default wiring configuration

func NewDefaultTemperatureK

func NewDefaultTemperatureK(tPin int) TemperatureK

NewDefaultTemperatureK creates a new TemperatureK with default wiring configuration

func NewTemperatureK

func NewTemperatureK(tPin int, batchResistanceOhms float64, vccVolts func() (float64, error)) TemperatureK

NewTemperatureK creates a new TemperatureK with default wiring configuration

func (TemperatureK) Read

func (s TemperatureK) Read() (float64, error)

Read takes a reading from the underlying ADS1115 and converts the voltage value to a temperature reading in Kelvins.

Jump to

Keyboard shortcuts

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