piBot

command module
v0.0.0-...-098021b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2016 License: MIT Imports: 3 Imported by: 0

README

piBot

Golang sensor library for raspberry pi

thermo

This package reads thermometer data for the DS18B20.

tempReader, err := thermo.NewTemperatureReader("28-0000075fd199")
if err != nil {
	fmt.Println(err)
	panic("Error initializing temperature reader")
}

for {
	temp, err := tempReader.ReadTemp()
	if err != nil {
		fmt.Println(err)
		panic("Error reading temp")
	}

	fmt.Println(temp.Pretty())
	time.Sleep(1 * time.Minute)
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL