9 lines
291 B
Python
9 lines
291 B
Python
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
|
|
# SPDX-License-Identifier: Unlicense
|
|
"""CircuitPython CPU temperature example in Fahrenheit"""
|
|
import time
|
|
import microcontroller
|
|
|
|
while True:
|
|
print(microcontroller.cpu.temperature * (9 / 5) + 32)
|
|
time.sleep(0.15)
|