Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 828 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 828 Bytes

Raspberry PI Thermometer

A thermometer using the Raspberry PI and Wire Digital Temperature Sensor.

After following the prerequisites, and attaching the temperature sensor; the code will grab the device id, and print out the temperature to stdout.

Prerequisite

Building for Raspberry PI

$ GOOS=linux GOARCH=arm GOARM=7 go build -o ./build/armv7-linux/thermometer

Running

$ pi@raspberrypi:~/raspberrypi-thermometer $ ./build/armv7-linux/thermometer
Temperature: 16.625
Temperature: 16.687
Temperature: 16.625
Temperature: 16.687
Temperature: 16.625
Temperature: 16.687
^C