Update simpletest.py
This commit is contained in:
parent
5a390ab3a2
commit
36888f86a1
@ -10,7 +10,7 @@ import adafruit_max31865
|
|||||||
|
|
||||||
# Initialize SPI bus and sensor.
|
# Initialize SPI bus and sensor.
|
||||||
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
|
spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
|
||||||
cs = digitalio.DigitalInOut(board.D5) # Chip select of the MAX31865 board.
|
cs = digitalio.DigitalInOut(board.D5) # Chip select of the MAX31865 board.
|
||||||
sensor = adafruit_max31865.MAX31865(spi, cs)
|
sensor = adafruit_max31865.MAX31865(spi, cs)
|
||||||
# Note you can optionally provide the thermocouple RTD nominal, the reference
|
# Note you can optionally provide the thermocouple RTD nominal, the reference
|
||||||
# resistance, and the number of wires for the sensor (2 the default, 3, or 4)
|
# resistance, and the number of wires for the sensor (2 the default, 3, or 4)
|
||||||
|
Loading…
Reference in New Issue
Block a user