package
module
Version:
v0.0.0-...-b31c678
Opens a new window with list of versions in this module.
Published: Oct 8, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
mcp9808
golang API for MCP9808 temperature sensor.
Documentation
¶
Package mcp9808 provides a API for using a I²C(i2c) temperature sensor MCP9008.
View Source
const (
MCP9808_I2CADDR_DEFAULT byte = 0x18
MCP9808_REG_CONFIG byte = 0x01
MCP9808_REG_AMBIENT_TEMP byte = 0x05
MCP9808_REG_MANUF_ID byte = 0x06
MCP9808_REG_DEVICE_ID byte = 0x07
MCP9808_REG_RESOLUTION byte = 0x08
)
Address sets the i2c address in not using the default address of 0x40
type MCP9808 struct {
Temperature float64
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.