diff --git a/software/code.py b/software/code.py index 447acda..b1f0974 100755 --- a/software/code.py +++ b/software/code.py @@ -21,6 +21,7 @@ class fermenter: def __init__(self): # General + self.VERSION = "software v0.9.2-s" self.DELAY_SCREENS = 3 self.DELAY_ACTIONS = 1 self.STATUS_SENTENCE = "" @@ -40,7 +41,7 @@ def __init__(self): self.COLOR_WHITE = (100, 100, 100) # Time - self.TIME_TIMER_HOURS = 48 + self.TIME_TIMER_HOURS = 36 self.TIME_THRESHOLD_DAYS = 72 self.TIME_STARTUP = time.time() self.TIME_LEFT = self.TIME_TIMER_HOURS @@ -69,7 +70,7 @@ def __init__(self): self.sensor = adafruit_mcp9808.MCP9808(self.sensor_i2c) # Fan - self.FAN = pwmio.PWMOut(board.GP6, frequency=20000) + self.FAN = pwmio.PWMOut(board.GP6, frequency=10000) self.FAN.duty_cycle = 0 # Heating pad @@ -171,7 +172,7 @@ def display_screen(self, menu, i): self.content4_area.text = timer_unit(int(self.TIME_TIMER_HOURS)) elif self.screens_menu[i] == "footer": self.content1_area.text = "Domingo Fermenter" - self.content2_area.text = "software v0.9.1" + self.content2_area.text = self.VERSION self.content3_area.text = "domingoclub.com" self.content4_area.text = "⚙ ⚙ ⚙" @@ -296,10 +297,10 @@ def heating_system(self, temp): if self.STATUS: if temp < self.TEMP_MIN: self.HEAT.duty_cycle = percent_to_duty_cycles(100) + self.FAN.duty_cycle = percent_to_duty_cycles(8) self.LED.color = self.COLOR_RED self.STATUS_SENTENCE = "Heating up to the" self.STATUS_SUBSENTENCE = "good temperature." - self.FAN.duty_cycle = 0 elif temp > self.TEMP_MAX: self.LED.color = self.COLOR_BLUE self.STATUS_SENTENCE = "Cooling down to"