diff --git a/README.md b/README.md index 07ea9ff..1048f82 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/lib/oven.py b/lib/oven.py index ff17078..ce9dce2 100644 --- a/lib/oven.py +++ b/lib/oven.py @@ -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: