Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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.
Click to show internal directories.
Click to hide internal directories.