Mercurial > code > home > repos > homeauto
changeset 903:254847c0f9a6
merge
Ignore-this: 2c3507eccaeeceee5027f01fa0171538
darcs-hash:20130831173904-312f9-d4a19e23fd83d8bfdfcfd2e2f1319595669ad2c0
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 31 Aug 2013 10:39:04 -0700 |
parents | f8c085cfaf72 |
children | 5758151d4e33 |
files | service/laundry/laundry.go |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/service/laundry/laundry.go Sat Aug 31 10:35:25 2013 -0700 +++ b/service/laundry/laundry.go Sat Aug 31 10:39:04 2013 -0700 @@ -70,14 +70,14 @@ OutStrike: GetPin("GPIO9"), } - if err := hwio.PinMode(pins.InMotion, hwio.INPUT_PULLUP); err != nil { panic(err) } - if err := hwio.PinMode(pins.InSwitch1, hwio.INPUT_PULLUP); err != nil { panic(err) } - if err := hwio.PinMode(pins.InSwitch2, hwio.INPUT_PULLUP); err != nil { panic(err) } - if err := hwio.PinMode(pins.InSwitch3, hwio.INPUT_PULLUP); err != nil { panic(err) } - if err := hwio.PinMode(pins.InDoorClosed, hwio.INPUT_PULLUP); err != nil { panic(err) } - if err := hwio.PinMode(pins.OutLed, hwio.OUTPUT); err != nil { panic(err) } - if err := hwio.PinMode(pins.OutSpeaker, hwio.OUTPUT); err != nil { panic(err) } - if err := hwio.PinMode(pins.OutStrike, hwio.OUTPUT); err != nil { panic(err) } + if err := hwio.PinMode(pins.InMotion, hwio.INPUT_PULLUP); err != nil { panic(err) } + if err := hwio.PinMode(pins.InSwitch1, hwio.INPUT_PULLUP); err != nil { panic(err) } + if err := hwio.PinMode(pins.InSwitch2, hwio.INPUT_PULLUP); err != nil { panic(err) } + if err := hwio.PinMode(pins.InSwitch3, hwio.INPUT_PULLUP); err != nil { panic(err) } + if err := hwio.PinMode(pins.InDoorClosed, hwio.INPUT_PULLUP); err != nil { panic(err) } + if err := hwio.PinMode(pins.OutLed, hwio.OUTPUT); err != nil { panic(err) } + if err := hwio.PinMode(pins.OutSpeaker, hwio.OUTPUT); err != nil { panic(err) } + if err := hwio.PinMode(pins.OutStrike, hwio.OUTPUT); err != nil { panic(err) } return pins }