From edea921d88207ec8898bee7bf438687a48b6bc0e Mon Sep 17 00:00:00 2001 From: Jason Bruce Date: Sun, 3 Mar 2019 18:24:52 -0500 Subject: [PATCH 1/2] - never used spi, so fixing some leftovers for an issue --- README.md | 3 ++- lib/oven.py | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 07ea9ff..fb76538 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: - + + $ pip 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: From dacbe491f05c049faaafb2c54e34b77f8b2dd50c Mon Sep 17 00:00:00 2001 From: Jason Bruce Date: Tue, 5 Mar 2019 11:16:57 -0500 Subject: [PATCH 2/2] - changed pip install to apt-get install... oops --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fb76538..1048f82 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ If you want to deploy the code on a PI for production: If you also want to use the in-kernel SPI drivers with a MAX31855 sensor: - $ pip install python-dev + $ sudo apt-get install python-dev $ pip install Adafruit-MAX31855 ## Configuration