SOftware pins on 55

pull/132/head
James Kirikland Garner 2023-02-12 19:22:21 +08:00
rodzic ca13fcfc3a
commit 15fe69f815
2 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -49,9 +49,9 @@ currency_type = "$" # Currency Symbol to show when calculating cost to run j
# zero-cross solid-state-relay.
try:
import board
spi_sclk = board.D11 #spi clock
spi_sclk = board.D22 #spi clock
spi_mosi = board.D10 #spi Microcomputer Out Serial In (not connected on MAX315855, needed on MAX315856)
spi_miso = board.D9 #spi Microcomputer In Serial Out
spi_miso = board.D27 #spi Microcomputer In Serial Out
spi_cs = board.D6 #spi Chip Select
gpio_heat = board.D23 #output that controls relay

Wyświetl plik

@ -129,6 +129,7 @@ class TempSensorReal(TempSensor):
except ValueError as ex:
if config.max31855:
spi = bitbangio.SPI(config.spi_sclk, config.spi_mosi, config.spi_miso)
log.info('Using software SPI.')
else:
raise ex