- never used spi, so fixing some leftovers for an issue

python3
Jason Bruce 2019-03-03 18:24:52 -05:00
rodzic 8c765ed82d
commit edea921d88
2 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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: