1
0
Fork 0
mirror of https://github.com/shouptech/tempgopher.git synced 2026-02-03 16:49:42 +00:00

Turn off at start

This commit is contained in:
Emma 2018-09-28 20:10:59 -06:00
parent 6363f53257
commit 56b810ce83

3
run.go
View file

@ -71,6 +71,9 @@ func RunThermostat(sensor Sensor) {
hpin := rpio.Pin(sensor.HeatGPIO)
hpin.Output()
SetPinState(cpin, false, sensor.CoolInvert)
SetPinState(hpin, false, sensor.HeatInvert)
for {
t, err := ReadTemperature(sensor.ID)
if err != nil {