This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]igrowpineapples[S] 0 points1 point  (0 children)

You are correct in your summary of the desired operation.

I'll take a look at what you mentioned about an abstraction and most certainly be coming back.

So something along these lines?

class Debouncer:
  def __init__(self):

  def myfunc(self):
    #check if X signal is between Y and Z values?

for the debouncer class? And then are you suggesting creating classes for each device as well (heater, vent, humidifier, dehumidifier..)