-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
executable file
·43 lines (32 loc) · 835 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python3
# coding=utf-8
"""
reflow controller.
HW: Adafruit PyBadge
"""
# import os
import time
import sys
import board
from reflowcontroller import ReflowController
##########################################
# globals
##########################################
def main():
"""Main handling."""
wait_duration = 5
step_duration = 0.5
for index in range(wait_duration * step_duration):
print(".", end="")
time.sleep(step_duration / wait_duration)
print("")
print(42 * "*")
print("Python Version: " + sys.version)
print("board: " + board.board_id)
print(42 * "*")
myReflowController = ReflowController()
myReflowController.run()
##########################################
if __name__ == "__main__":
main()
##########################################