Quantcast
Viewing all articles
Browse latest Browse all 5216

Automation, sensing and robotics • Re: Extract specific variable from this code

The read_temp() functions are currently returning a tuple containing the 2 values, you could just extract the second value and round the result.

Code:

F1 = round(read_temp()[1],1)print(F1)

Statistics: Posted by rpiMike — Fri Dec 22, 2023 11:04 pm



Viewing all articles
Browse latest Browse all 5216

Trending Articles