Documentation ¶
Index ¶
- func Addr(a0, a1 bool) uint8
- type DevI2C
- func (d *DevI2C) CalibrateZero() error
- func (d *DevI2C) Init() (err error)
- func (d *DevI2C) PPMCO2() int32
- func (d *DevI2C) ReadRegister(addr uint8) (uint8, error)
- func (d *DevI2C) SetAutoCalibration(enable bool) (err error)
- func (d *DevI2C) Update(which drivers.Measurement) (err error)
- func (d *DevI2C) WriteRegisters(addr uint8, vals []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DevI2C ¶
type DevI2C struct {
// contains filtered or unexported fields
}
DevI2C is a handle to a MH-Z16 NDIR CO2 Sensor using the I2C interface.
func (*DevI2C) CalibrateZero ¶
CalibrateZero calibrates the NDIR to around 412ppm.
func (*DevI2C) SetAutoCalibration ¶
SetAutoCalibration can enable or disable the NDIR's auto calibration mode.
Click to show internal directories.
Click to hide internal directories.