added config.gpio_sensor_di to the config file and the code for

max-31856. Thanks Mark Tilles.
pull/20/head
Jason Bruce 2021-04-28 16:17:22 -04:00 zatwierdzone przez Andrew de Quincey
rodzic 712ad761af
commit f1b8cdc91c
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -41,6 +41,7 @@ thermocouple_type = MAX31856.MAX31856_S_TYPE
gpio_sensor_cs = 27
gpio_sensor_clock = 22
gpio_sensor_data = 17
gpio_sensor_di = 10 # only used with max31856
### duty cycle of the entire system in seconds. Every N seconds a decision
### is made about switching the relay[s] on & off and for how long.

Wyświetl plik

@ -107,7 +107,8 @@ class TempSensorReal(TempSensor):
from max31856 import MAX31856
software_spi = { 'cs': config.gpio_sensor_cs,
'clk': config.gpio_sensor_clock,
'do': config.gpio_sensor_data }
'do': config.gpio_sensor_data,
'di': config.gpio_sensor_di }
self.thermocouple = MAX31856(tc_type=config.thermocouple_type,
software_spi = sofware_spi,
units = config.temp_scale