7 lines
185 B
Python
7 lines
185 B
Python
"""CircuitPython CPU temperature example in Fahrenheit"""
|
|
import time
|
|
import microcontroller
|
|
|
|
while True:
|
|
print(microcontroller.cpu.temperature * (9 / 5) + 32)
|
|
time.sleep(0.15)
|