This commit is contained in:
jbruce12000 2019-03-05 20:11:12 -05:00
commit d301848001
2 changed files with 2 additions and 7 deletions

View File

@ -72,7 +72,8 @@ If you want to deploy the code on a PI for production:
$ pip install RPi.GPIO
If you also want to use the in-kernel SPI drivers with a MAX31855 sensor:
$ sudo apt-get install python-dev
$ pip install Adafruit-MAX31855
## Configuration

View File

@ -21,12 +21,6 @@ try:
from max31855spi import MAX31855SPI, MAX31855SPIError
log.info("import MAX31855SPI")
spi_reserved_gpio = [7, 8, 9, 10, 11]
if config.gpio_air in spi_reserved_gpio:
raise Exception("gpio_air pin %s collides with SPI pins %s" % (config.gpio_air, spi_reserved_gpio))
if config.gpio_cool in spi_reserved_gpio:
raise Exception("gpio_cool pin %s collides with SPI pins %s" % (config.gpio_cool, spi_reserved_gpio))
if config.gpio_door in spi_reserved_gpio:
raise Exception("gpio_door pin %s collides with SPI pins %s" % (config.gpio_door, spi_reserved_gpio))
if config.gpio_heat in spi_reserved_gpio:
raise Exception("gpio_heat pin %s collides with SPI pins %s" % (config.gpio_heat, spi_reserved_gpio))
if config.max6675: