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:
parent
6363f53257
commit
56b810ce83
1 changed files with 3 additions and 0 deletions
3
run.go
3
run.go
|
|
@ -71,6 +71,9 @@ func RunThermostat(sensor Sensor) {
|
||||||
hpin := rpio.Pin(sensor.HeatGPIO)
|
hpin := rpio.Pin(sensor.HeatGPIO)
|
||||||
hpin.Output()
|
hpin.Output()
|
||||||
|
|
||||||
|
SetPinState(cpin, false, sensor.CoolInvert)
|
||||||
|
SetPinState(hpin, false, sensor.HeatInvert)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
t, err := ReadTemperature(sensor.ID)
|
t, err := ReadTemperature(sensor.ID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue