Skip to content

Commit

Permalink
standalone clean
Browse files Browse the repository at this point in the history
  • Loading branch information
antoine3000 committed Dec 19, 2022
1 parent fdc7926 commit 4f0dc6c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions software/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 = "⚙ ⚙ ⚙"

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 4f0dc6c

Please sign in to comment.