-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_old.py
More file actions
36 lines (24 loc) · 691 Bytes
/
Copy pathmain_old.py
File metadata and controls
36 lines (24 loc) · 691 Bytes
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
#from displayControl import DisplayController
from machine import Pin, SoftI2C
from tempTask import temp_task
from utime import sleep
import threading
from lcdControl import LCD
from blinkTask import blink_task
#pin = Pin(25, Pin.OUT)
print("LED starts flashing...")
#blink_thread = threading.Thread(target=temp_task)
#blink_thread.start()
#display = DisplayController()
#display_receive_thread = threading.Thread(target=display.receive_data)
#display_receive_thread.start()
# create temp thread
temp_thread = threading.Thread(target=temp_task)
temp_thread.start()
while True:
try:
sleep(1)
except KeyboardInterrupt:
break
#pin.off()
print("Finished.")