mirror of
https://github.com/shouptech/tempgopher.git
synced 2026-02-03 16:49:42 +00:00
Change Gpio to GPIO
This commit is contained in:
parent
7214eb6685
commit
44f0358259
2 changed files with 4 additions and 4 deletions
|
|
@ -12,10 +12,10 @@ type Sensor struct {
|
||||||
Alias string `yaml:"alias"`
|
Alias string `yaml:"alias"`
|
||||||
HighTemp float64 `yaml:"hightemp"`
|
HighTemp float64 `yaml:"hightemp"`
|
||||||
LowTemp float64 `yaml:"lowtemp"`
|
LowTemp float64 `yaml:"lowtemp"`
|
||||||
HeatGpio int32 `yaml:"heatgpio"`
|
HeatGPIO int32 `yaml:"heatgpio"`
|
||||||
HeatPullup bool `yaml:"heatpullup"`
|
HeatPullup bool `yaml:"heatpullup"`
|
||||||
HeatMinutes int32 `yaml:"heatminutes"`
|
HeatMinutes int32 `yaml:"heatminutes"`
|
||||||
CoolGpio int32 `yaml:"coolgpio"`
|
CoolGPIO int32 `yaml:"coolgpio"`
|
||||||
CoolPullup bool `yaml:"coolpullup"`
|
CoolPullup bool `yaml:"coolpullup"`
|
||||||
CoolMinutes int32 `yaml:"coolminutes"`
|
CoolMinutes int32 `yaml:"coolminutes"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,10 +12,10 @@ func Test_LoadConfig(t *testing.T) {
|
||||||
Alias: "fermenter",
|
Alias: "fermenter",
|
||||||
HighTemp: 8,
|
HighTemp: 8,
|
||||||
LowTemp: 4,
|
LowTemp: 4,
|
||||||
HeatGpio: 5,
|
HeatGPIO: 5,
|
||||||
HeatPullup: true,
|
HeatPullup: true,
|
||||||
HeatMinutes: 5,
|
HeatMinutes: 5,
|
||||||
CoolGpio: 17,
|
CoolGPIO: 17,
|
||||||
CoolPullup: false,
|
CoolPullup: false,
|
||||||
CoolMinutes: 10}
|
CoolMinutes: 10}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue