|
@@ -53,7 +53,6 @@ class HeatPower():
|
|
|
# self.sw_pin.duty(180)
|
|
# self.sw_pin.duty(180)
|
|
|
self.status = 0
|
|
self.status = 0
|
|
|
self.duty = 0.0
|
|
self.duty = 0.0
|
|
|
- self.off()
|
|
|
|
|
|
|
|
|
|
def duty_percent(self, percent):
|
|
def duty_percent(self, percent):
|
|
|
if percent > 1:
|
|
if percent > 1:
|
|
@@ -113,6 +112,7 @@ async def cal_ntc():
|
|
|
|
|
|
|
|
async def sensor():
|
|
async def sensor():
|
|
|
uasyncio.create_task(cal_ntc())
|
|
uasyncio.create_task(cal_ntc())
|
|
|
|
|
+ heat.on()
|
|
|
cnt = 0
|
|
cnt = 0
|
|
|
while True:
|
|
while True:
|
|
|
cnt += 1
|
|
cnt += 1
|