circuitplayground_temperture_plotter.py
1 """If you're using Mu, this example will plot the temperature in C and F on the plotter! Click 2 "Plotter" to open it, and place your finger over the sensor to see the numbers change. The 3 sensor is located next to the picture of the thermometer on the CPX.""" 4 import time 5 from adafruit_circuitplayground.express import cpx 6 7 while True: 8 print("Temperature C:", cpx.temperature) 9 print("Temperature F:", cpx.temperature * 1.8 + 32) 10 print((cpx.temperature, cpx.temperature * 1.8 + 32)) 11 time.sleep(0.1)