Documentation ¶
Overview ¶
Package tmp006 allows interfacing with the TMP006 thermopile.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SR1 = &SampleRate{0x0000, 1, 0.25} // 1 sample, 0.25 second between measurements. SR2 = &SampleRate{0x0200, 2, 0.5} // 2 samples, 0.5 second between measurements. SR4 = &SampleRate{0x0400, 4, 1} // 4 samples, 1 second between measurements. SR8 = &SampleRate{0x0600, 8, 2} // 8 samples, 2 seconds between measurements. SR16 = &SampleRate{0x0800, 16, 4} // 16 samples, 4 seconds between measurements. )
Functions ¶
This section is empty.
Types ¶
type SampleRate ¶
type SampleRate struct {
// contains filtered or unexported fields
}
type TMP006 ¶
type TMP006 struct { // Bus to communicate over. Bus embd.I2CBus // Addr of the sensor. Addr byte // SampleRate specifies the sampling rate for the sensor. SampleRate *SampleRate // contains filtered or unexported fields }
TMP006 represents a TMP006 thermopile sensor.
func (*TMP006) RawDieTemp ¶
RawDieTemp returns the current raw die temp reading.
func (*TMP006) RawDieTemps ¶
RawDieTemps returns a channel to get future raw die temps from.
Click to show internal directories.
Click to hide internal directories.