Show Fahrenheit on PicoBricks OLED Instead of Celsius
From ikev.in/w
Revision as of 21:27, 28 April 2023 by Ikevinax (talk | contribs) (Created page with "In the file '''main.py''', replace this: <pre> oled.text("TEMP: {0:.2f}C".format(dht_sensor.temperature),0,30) </pre> ...with this: <pre> oled.text("TEMP: {0:.2f}F".format((dht_sensor.temperature * 1.8) + 32),0,30) </pre>")
In the file main.py, replace this:
oled.text("TEMP: {0:.2f}C".format(dht_sensor.temperature),0,30)
...with this:
oled.text("TEMP: {0:.2f}F".format((dht_sensor.temperature * 1.8) + 32),0,30)