Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
exze opened this issue Jul 21, 2020 · 0 comments
Open

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

exze opened this issue Jul 21, 2020 · 0 comments

Comments

@exze
Copy link

exze commented Jul 21, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant