silvia-pi icon indicating copy to clipboard operation
silvia-pi copied to clipboard

Get temp values from def pid_loop(dummy,state):

Open exze opened this issue 4 years ago • 0 comments

Hi

i been trying to get the temp value from def pid_loop(dummy,state): but i dont get it to work. what values do i have to have in the dummy and state??

i trying to add a oled display and i get it to work when i call the sensor twice. but i get conflicts. so i need to get ether the sensor variable or tempc from def pid_loop

i made a def see below and that works but its in conflict with the pid_loop(dummy,state) def because i load the sensor twice

def display(): spi = busio.SPI(board.SCK, MOSI=board.MOSI, MISO=board.MISO)
cs = digitalio.DigitalInOut(board.D5) sensor = adafruit_max31865.MAX31865(spi, cs)

tempc = sensor.temperature

hope some one could help me :) best regards Mikael

exze avatar Jul 21 '20 11:07 exze