Documentation ¶
Overview ¶
Driver to read read the MICS6814 via an ads1015 ADC
Reference driver: https://github.com/pimoroni/enviroplus-python/blob/master/library/enviroplus/gas.py
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOpts = &Opts{ Wait: 1 * time.Second, I2cAddress: 0x49, }
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func NewWithOpts ¶
func (*Device) LastValue ¶
Return the last value read from the sensor
Call StartReading() first to start reading values from the sensor.
func (*Device) StartReading ¶
func (dev *Device) StartReading()
Click to show internal directories.
Click to hide internal directories.