kopia lustrzana https://github.com/jbruce12000/kiln-controller
- never used spi, so fixing some leftovers for an issue
rodzic
8c765ed82d
commit
edea921d88
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue