added config.gpio_sensor_di to the config file and the code for
max-31856. Thanks Mark Tilles.
This commit is contained in:
parent
1d26ae973f
commit
e16aab8e66
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user