Initial work on using a display

pull/140/head
John Pickup 2023-06-14 20:21:31 +01:00
rodzic aac4085c6c
commit 19c233c228
2 zmienionych plików z 17 dodań i 6 usunięć

Wyświetl plik

@ -45,13 +45,19 @@ max31855 = 0
max31856 = 1
# see lib/max31856.py for other thermocouple_type, only applies to max31856
# uncomment this if using MAX-31856
thermocouple_type = MAX31856.MAX31856_S_TYPE
#thermocouple_type = MAX31856.MAX31856_S_TYPE
thermocouple_type = MAX31856.MAX31856_R_TYPE
### Thermocouple Connection (using bitbang interfaces)
gpio_sensor_cs = 27
gpio_sensor_clock = 22
gpio_sensor_data = 17
gpio_sensor_di = 10 # only used with max31856
gpio_sensor_cs = 26
gpio_sensor_clock = 18
gpio_sensor_data = 14
gpio_sensor_di = 15 # only used with max31856
gpio_spi = 1
### Thermocouple Connection (using hardware SPI)
#spi_port = 0
#spi_device = 0
########################################################################
#
@ -87,7 +93,8 @@ stop_integral_windup = True
########################################################################
#
# Simulation parameters
simulate = True
#simulate = True
simulate = False
sim_t_env = 60.0 # deg C
sim_c_heat = 500.0 # J/K heat capacity of heat element
sim_c_oven = 5000.0 # J/K heat capacity of oven

Wyświetl plik

@ -32,6 +32,7 @@ profile_path = config.kiln_profiles_directory
from oven import SimulatedOven, RealOven, Profile
from ovenWatcher import OvenWatcher
from ovenDisplay import OvenDisplay
app = bottle.Bottle()
@ -42,6 +43,9 @@ else:
log.info("this is a real kiln")
oven = RealOven()
ovenWatcher = OvenWatcher(oven)
ovenDisplay = OvenDisplay(oven, ovenWatcher)
# this ovenwatcher is used in the oven class for restarts
oven.set_ovenwatcher(ovenWatcher)