Skip to content

Commit 2d87a13

Browse files
authored
Update main.py
1 parent 24f7a13 commit 2d87a13

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

src/main.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
from Thermometer import Thermometer
55

66
def main():
7-
sensor = Sensor()
8-
thermo = Thermometer()
9-
thermo.reset()
10-
power_off = Pin(15, Pin.IN, Pin.PULL_UP)
11-
while power_off.value() != 0:
12-
voltage = sensor.read_sensor_voltage()
13-
thermo.calculate_temps(voltage)
14-
thermo.reset()
7+
"""
8+
Main function to run the thermometer program.
9+
10+
Function initializes the sensor and thermometer, and continuously reads the temperature until the power off button is pressed.
11+
"""
12+
# TODO
13+
pass
1514

1615
if __name__ == "__main__":
17-
main()
16+
main()

0 commit comments

Comments
 (0)