kopia lustrzana https://github.com/botheredbybees/kilnController
GPIO confusion fixed
rodzic
0fd66725ce
commit
30b450c9d3
4
oven.py
4
oven.py
|
@ -103,11 +103,11 @@ class Oven (threading.Thread):
|
||||||
if value:
|
if value:
|
||||||
self.air = 1.0
|
self.air = 1.0
|
||||||
if gpio_available:
|
if gpio_available:
|
||||||
GPIO.output(GPIO_COOL, GPIO.LOW)
|
GPIO.output(GPIO_AIR, GPIO.LOW)
|
||||||
else:
|
else:
|
||||||
self.air = 0.0
|
self.air = 0.0
|
||||||
if gpio_available:
|
if gpio_available:
|
||||||
GPIO.output(GPIO_COOL, GPIO.HIGH)
|
GPIO.output(GPIO_AIR, GPIO.HIGH)
|
||||||
|
|
||||||
def get_state(self):
|
def get_state(self):
|
||||||
state = {
|
state = {
|
||||||
|
|
Ładowanie…
Reference in New Issue