Versions in this module Expand all Collapse all v0 v0.2.0 Oct 27, 2019 Changes in this version type Driver + func (d *Driver) Close() error v0.1.0 Feb 17, 2018 Changes in this version + const Filter16 + const Filter2 + const Filter4 + const Filter8 + const FilterOff + const I2CAddr + const Oversampling16x + const Oversampling1x + const Oversampling2x + const Oversampling4x + const Oversampling8x + const OversamplingOff + const StandByTime1000ms + const StandByTime10ms + const StandByTime125ms + const StandByTime1ms + const StandByTime20ms + const StandByTime250ms + const StandByTime500ms + const StandByTime62_5ms + type Driver struct + func New(device bus) *Driver + func (d *Driver) GetMode() (Mode, error) + func (d *Driver) GetSettings() (Settings, error) + func (d *Driver) Init() error + func (d *Driver) InitWith(mode Mode, c Settings) error + func (d *Driver) Read() (Response, error) + func (d *Driver) SetMode(m Mode) error + func (d *Driver) SetSettings(s Settings) error + func (d *Driver) Sleep() error + type Filter byte + func (i Filter) String() string + type Mode byte + const ModeForced + const ModeNormal + const ModeSleep + func (i Mode) String() string + type Oversampling byte + func (i Oversampling) String() string + type Response struct + Humidity float64 + Pressure float64 + Temperature float64 + type Settings struct + Filter Filter + HumidityOversampling Oversampling + PressureOversampling Oversampling + Standby StandByTime + TemperatureOversampling Oversampling + type StandByTime byte + func (i StandByTime) String() string