Skip to content

Commit

Permalink
Thonny対応
Browse files Browse the repository at this point in the history
  • Loading branch information
bokunimowakaru committed Jul 27, 2024
1 parent 956ed31 commit 6445461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raspi/wgbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def word2uint(d1,d2):
if len(data) >= 5:
temp = float(word2uint(data[0],data[1])) / 65535. * 175. - 45.
hum = float(word2uint(data[3],data[4])) / 65535. * 100.
print("%.2f ℃, %.0f %" % (temp,hum),end='')
print("Temp. = %.2f ℃, Humid. = %.0f %" % (temp,hum),end='')
wgbt = 0.725 * temp + 0.0368 * hum + 0.00364 * temp * hum - 3.246
print(", WGBT = %.2f ℃" % wgbt)
sleep(1)
Expand Down

0 comments on commit 6445461

Please sign in to comment.