forked from M-Labs/thermostat
atse
6b8a5f5bb8
Pytec is a misnomer, as the Thermostat is not limited to just controlling TEC modules. The library also interfaces with and controls the Thermostat itself, and not the TEC module directly. See M-Labs/thermostat#149 (comment)
14 lines
312 B
Python
14 lines
312 B
Python
import time
|
|
from pytec.client import Client
|
|
|
|
tec = Client() #(host="localhost", port=6667)
|
|
tec.set_param("b-p", 1, "t0", 20)
|
|
print(tec.get_output())
|
|
print(tec.get_pid())
|
|
print(tec.get_output())
|
|
print(tec.get_postfilter())
|
|
print(tec.get_b_parameter())
|
|
while True:
|
|
print(tec.get_report())
|
|
time.sleep(0.05)
|