kopia lustrzana https://github.com/jbruce12000/kiln-controller
				
				
				
			added config.gpio_sensor_di to the config file and the code for
max-31856. Thanks Mark Tilles.pull/20/head
							rodzic
							
								
									712ad761af
								
							
						
					
					
						commit
						f1b8cdc91c
					
				|  | @ -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 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Jason Bruce
						Jason Bruce