Browse Source

Move main

master
Lukas 3 years ago
parent
commit
fac64fc9e9
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      amp_controller.py

+ 5
- 1
amp_controller.py View File

@@ -80,7 +80,7 @@ class amp_controller:
return False


if __name__ == "__main__":
def main():
ac = amp_controller()
ac.setup_pins()
ac.power("on")
@@ -131,3 +131,7 @@ if __name__ == "__main__":
timer = ac.SHUTOFF_TIMER_DURATION
logging.debug("Something is playing.")
logging.debug("Timer: " + str(timer))


if __name__ == "__main__":
main()

Loading…
Cancel
Save